Warning: Permanently added '44.222.119.220' (ED25519) to the list of known hosts. You can reproduce this build on your computer by running: sudo dnf install copr-rpmbuild /usr/bin/copr-rpmbuild --verbose --drop-resultdir --task-url https://copr.fedorainfracloud.org/backend/get-build-task/10087519-fedora-rawhide-x86_64 --chroot fedora-rawhide-x86_64 Version: 1.6 PID: 9277 Logging PID: 9279 Task: {'allow_user_ssh': False, 'appstream': False, 'background': False, 'build_id': 10087519, 'buildroot_pkgs': [], 'chroot': 'fedora-rawhide-x86_64', 'enable_net': False, 'fedora_review': False, 'git_hash': 'c962915a32b1ba13368ee7d9e4fc0624a74bca7e', 'git_repo': 'https://copr-dist-git.fedorainfracloud.org/git/r0x0d/python-anthropic/python-anthropic', 'isolation': 'default', 'memory_reqs': 2048, 'package_name': 'python-anthropic', 'package_version': '0.77.0-1', 'project_dirname': 'python-anthropic', 'project_name': 'python-anthropic', 'project_owner': 'r0x0d', 'repo_priority': None, 'repos': [{'baseurl': 'https://download.copr.fedorainfracloud.org/results/r0x0d/python-anthropic/fedora-rawhide-x86_64/', 'id': 'copr_base', 'name': 'Copr repository', 'priority': None}], 'sandbox': 'r0x0d/python-anthropic--r0x0d', 'source_json': {}, 'source_type': None, 'ssh_public_keys': None, 'storage': 0, 'submitter': 'r0x0d', 'tags': [], 'task_id': '10087519-fedora-rawhide-x86_64', 'timeout': 18000, 'uses_devel_repo': False, 'with_opts': [], 'without_opts': []} Running: git clone https://copr-dist-git.fedorainfracloud.org/git/r0x0d/python-anthropic/python-anthropic /var/lib/copr-rpmbuild/workspace/workdir-ot6bhjbo/python-anthropic --depth 500 --no-single-branch --recursive cmd: ['git', 'clone', 'https://copr-dist-git.fedorainfracloud.org/git/r0x0d/python-anthropic/python-anthropic', '/var/lib/copr-rpmbuild/workspace/workdir-ot6bhjbo/python-anthropic', '--depth', '500', '--no-single-branch', '--recursive'] cwd: . rc: 0 stdout: stderr: Cloning into '/var/lib/copr-rpmbuild/workspace/workdir-ot6bhjbo/python-anthropic'... Running: git checkout c962915a32b1ba13368ee7d9e4fc0624a74bca7e -- cmd: ['git', 'checkout', 'c962915a32b1ba13368ee7d9e4fc0624a74bca7e', '--'] cwd: /var/lib/copr-rpmbuild/workspace/workdir-ot6bhjbo/python-anthropic rc: 0 stdout: stderr: Note: switching to 'c962915a32b1ba13368ee7d9e4fc0624a74bca7e'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at c962915 automatic import of python-anthropic Running: dist-git-client sources cmd: ['dist-git-client', 'sources'] cwd: /var/lib/copr-rpmbuild/workspace/workdir-ot6bhjbo/python-anthropic rc: 0 stdout: stderr: INFO: Reading stdout from command: git rev-parse --abbrev-ref HEAD INFO: Reading stdout from command: git rev-parse HEAD INFO: Reading sources specification file: sources INFO: Downloading anthropic-0.77.0.tar.gz INFO: Reading stdout from command: curl --help all INFO: Calling: curl -H Pragma: -o anthropic-0.77.0.tar.gz --location --connect-timeout 60 --retry 3 --retry-delay 10 --remote-time --show-error --fail --retry-all-errors https://copr-dist-git.fedorainfracloud.org/repo/pkgs/r0x0d/python-anthropic/python-anthropic/anthropic-0.77.0.tar.gz/md5/9b974a151053919078329e19e550c2ee/anthropic-0.77.0.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 492k 100 492k 0 0 27.5M 0 --:--:-- --:--:-- --:--:-- 28.3M INFO: Reading stdout from command: md5sum anthropic-0.77.0.tar.gz tail: /var/lib/copr-rpmbuild/main.log: file truncated Running (timeout=18000): unbuffer mock --spec /var/lib/copr-rpmbuild/workspace/workdir-ot6bhjbo/python-anthropic/python-anthropic.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-ot6bhjbo/python-anthropic --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1770044012.124196 -r /var/lib/copr-rpmbuild/results/configs/child.cfg INFO: mock.py version 6.6 starting (python version = 3.14.2, NVR = mock-6.6-1.fc43), args: /usr/libexec/mock/mock --spec /var/lib/copr-rpmbuild/workspace/workdir-ot6bhjbo/python-anthropic/python-anthropic.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-ot6bhjbo/python-anthropic --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1770044012.124196 -r /var/lib/copr-rpmbuild/results/configs/child.cfg Start(bootstrap): init plugins INFO: tmpfs initialized INFO: selinux enabled INFO: chroot_scan: initialized INFO: compress_logs: initialized Finish(bootstrap): init plugins Start: init plugins INFO: tmpfs initialized INFO: selinux enabled INFO: chroot_scan: initialized INFO: compress_logs: initialized Finish: init plugins INFO: Signal handler active Start: run INFO: Start(/var/lib/copr-rpmbuild/workspace/workdir-ot6bhjbo/python-anthropic/python-anthropic.spec) Config(fedora-rawhide-x86_64) Start: clean chroot Finish: clean chroot Mock Version: 6.6 INFO: Mock Version: 6.6 Start(bootstrap): chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1770044012.124196/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start(bootstrap): cleaning package manager metadata Finish(bootstrap): cleaning package manager metadata INFO: Guessed host environment type: unknown INFO: Using container image: registry.fedoraproject.org/fedora:rawhide INFO: Pulling image: registry.fedoraproject.org/fedora:rawhide INFO: Tagging container image as mock-bootstrap-bb9df1fc-7942-4d01-af73-cc4a364d3576 INFO: Checking that b3b00aff8d060262f5d77649250eb665033e572b0cefe5d2c59c489e148031b6 image matches host's architecture INFO: Copy content of container b3b00aff8d060262f5d77649250eb665033e572b0cefe5d2c59c489e148031b6 to /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1770044012.124196/root INFO: mounting b3b00aff8d060262f5d77649250eb665033e572b0cefe5d2c59c489e148031b6 with podman image mount INFO: image b3b00aff8d060262f5d77649250eb665033e572b0cefe5d2c59c489e148031b6 as /var/lib/containers/storage/overlay/09484c5f21b83c63c294118009632152df52831f005bc5b44f2c11dc4ad72bad/merged INFO: umounting image b3b00aff8d060262f5d77649250eb665033e572b0cefe5d2c59c489e148031b6 (/var/lib/containers/storage/overlay/09484c5f21b83c63c294118009632152df52831f005bc5b44f2c11dc4ad72bad/merged) with podman image umount INFO: Removing image mock-bootstrap-bb9df1fc-7942-4d01-af73-cc4a364d3576 INFO: Package manager dnf5 detected and used (fallback) INFO: Not updating bootstrap chroot, bootstrap_image_ready=True Start(bootstrap): creating root cache Finish(bootstrap): creating root cache Finish(bootstrap): chroot init Start: chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-1770044012.124196/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin INFO: Package manager dnf5 detected and used (direct choice) INFO: Buildroot is handled by package management downloaded with a bootstrap image: rpm-6.0.1-2.fc44.x86_64 rpm-sequoia-1.10.0-2.fc44.x86_64 dnf5-5.3.0.0-7.fc44.x86_64 dnf5-plugins-5.3.0.0-7.fc44.x86_64 Start: installing minimal buildroot with dnf5 Updating and loading repositories: Copr repository 100% | 37.4 KiB/s | 3.1 KiB | 00m00s fedora 100% | 17.5 MiB/s | 22.4 MiB | 00m01s Repositories loaded. Package Arch Version Repository Size Installing group/module packages: bash x86_64 0:5.3.9-3.fc44 fedora 8.5 MiB bzip2 x86_64 0:1.0.8-23.fc44 fedora 95.0 KiB coreutils x86_64 0:9.9-4.fc44 fedora 5.4 MiB cpio x86_64 0:2.15-9.fc44 fedora 1.1 MiB diffutils x86_64 0:3.12-5.fc44 fedora 1.6 MiB fedora-release-common noarch 0:44-0.10 fedora 20.6 KiB findutils x86_64 1:4.10.0-7.fc44 fedora 1.9 MiB gawk x86_64 0:5.3.2-3.fc44 fedora 1.8 MiB glibc-minimal-langpack x86_64 0:2.43-1.fc44 fedora 0.0 B grep x86_64 0:3.12-3.fc44 fedora 1.0 MiB gzip x86_64 0:1.14-2.fc44 fedora 401.6 KiB info x86_64 0:7.2-7.fc44 fedora 357.9 KiB patch x86_64 0:2.8-4.fc44 fedora 226.6 KiB redhat-rpm-config noarch 0:343-19.fc44 fedora 183.6 KiB rpm-build x86_64 0:6.0.1-2.fc44 fedora 294.6 KiB sed x86_64 0:4.9-7.fc44 fedora 857.2 KiB shadow-utils x86_64 2:4.19.0-6.fc44 fedora 4.0 MiB tar x86_64 2:1.35-8.fc44 fedora 3.0 MiB unzip x86_64 0:6.0-69.fc44 fedora 445.8 KiB util-linux x86_64 0:2.41.3-12.fc44 fedora 3.5 MiB which x86_64 0:2.23-4.fc44 fedora 83.4 KiB xz x86_64 1:5.8.2-2.fc44 fedora 1.3 MiB Installing dependencies: R-srpm-macros noarch 0:1.3.4-3.fc44 fedora 3.4 KiB add-determinism x86_64 0:0.7.2-3.fc44 fedora 2.3 MiB alternatives x86_64 0:1.33-5.fc44 fedora 62.1 KiB ansible-srpm-macros noarch 0:1-20.1.fc44 fedora 35.7 KiB audit-libs x86_64 0:4.1.3-1.fc44 fedora 390.5 KiB binutils x86_64 0:2.45.50-19.fc44 fedora 27.4 MiB build-reproducibility-srpm-macros noarch 0:0.7.2-3.fc44 fedora 1.2 KiB bzip2-libs x86_64 0:1.0.8-23.fc44 fedora 80.5 KiB ca-certificates noarch 0:2025.2.80_v9.0.304-5.fc44 fedora 2.7 MiB cmake-srpm-macros noarch 0:3.31.10-5.fc44 fedora 524.0 B coreutils-common x86_64 0:9.9-4.fc44 fedora 11.2 MiB crypto-policies noarch 0:20251128-3.git19878fe.fc44 fedora 132.6 KiB curl x86_64 0:8.18.0-3.fc44 fedora 480.0 KiB cyrus-sasl-lib x86_64 0:2.1.28-35.fc44 fedora 2.3 MiB debugedit x86_64 0:5.2-6.fc44 fedora 218.3 KiB dwz x86_64 0:0.16-3.fc44 fedora 290.9 KiB ed x86_64 0:1.22.4-2.fc44 fedora 149.1 KiB efi-srpm-macros noarch 0:6-6.fc44 fedora 40.2 KiB elfutils x86_64 0:0.194-3.fc44 fedora 2.9 MiB elfutils-debuginfod-client x86_64 0:0.194-3.fc44 fedora 83.7 KiB elfutils-default-yama-scope noarch 0:0.194-3.fc44 fedora 1.8 KiB elfutils-libelf x86_64 0:0.194-3.fc44 fedora 1.1 MiB elfutils-libs x86_64 0:0.194-3.fc44 fedora 715.3 KiB fedora-gpg-keys noarch 0:44-0.1 fedora 131.2 KiB fedora-release noarch 0:44-0.10 fedora 0.0 B fedora-release-identity-basic noarch 0:44-0.10 fedora 664.0 B fedora-repos noarch 0:44-0.1 fedora 4.9 KiB fedora-repos-rawhide noarch 0:44-0.1 fedora 2.2 KiB file x86_64 0:5.46-9.fc44 fedora 100.1 KiB file-libs x86_64 0:5.46-9.fc44 fedora 11.9 MiB filesystem x86_64 0:3.18-52.fc44 fedora 112.0 B filesystem-srpm-macros noarch 0:3.18-52.fc44 fedora 38.2 KiB fonts-srpm-macros noarch 1:5.0.0-2.fc44 fedora 55.8 KiB forge-srpm-macros noarch 0:0.4.0-4.fc44 fedora 38.9 KiB fpc-srpm-macros noarch 0:1.3-16.fc44 fedora 144.0 B gap-srpm-macros noarch 0:2-2.fc44 fedora 2.1 KiB gdb-minimal x86_64 0:17.1-2.fc44 fedora 14.3 MiB gdbm-libs x86_64 1:1.23-11.fc44 fedora 129.6 KiB ghc-srpm-macros noarch 0:1.9.2-4.fc44 fedora 779.0 B glibc x86_64 0:2.43-1.fc44 fedora 6.9 MiB glibc-common x86_64 0:2.43-1.fc44 fedora 1.0 MiB glibc-gconv-extra x86_64 0:2.43-1.fc44 fedora 7.4 MiB gmp x86_64 1:6.3.0-5.fc44 fedora 815.2 KiB gnat-srpm-macros noarch 0:7-2.fc44 fedora 1.0 KiB gnulib-l10n noarch 0:20241231-2.fc44 fedora 655.0 KiB gnupg2 x86_64 0:2.4.9-4.fc44 fedora 6.5 MiB gnupg2-dirmngr x86_64 0:2.4.9-4.fc44 fedora 634.0 KiB gnupg2-gpg-agent x86_64 0:2.4.9-4.fc44 fedora 682.5 KiB gnupg2-gpgconf x86_64 0:2.4.9-4.fc44 fedora 249.7 KiB gnupg2-keyboxd x86_64 0:2.4.9-4.fc44 fedora 201.2 KiB gnupg2-verify x86_64 0:2.4.9-4.fc44 fedora 360.3 KiB gnutls x86_64 0:3.8.11-10.fc44 fedora 3.7 MiB go-srpm-macros noarch 0:3.8.0-2.fc44 fedora 61.9 KiB gpgverify noarch 0:2.2-4.fc44 fedora 8.7 KiB ima-evm-utils-libs x86_64 0:1.6.2-8.fc44 fedora 60.6 KiB jansson x86_64 0:2.14-4.fc44 fedora 88.9 KiB java-srpm-macros noarch 0:1-8.fc44 fedora 870.0 B json-c x86_64 0:0.18-8.fc44 fedora 82.6 KiB kernel-srpm-macros noarch 0:1.0-28.fc44 fedora 1.9 KiB keyutils-libs x86_64 0:1.6.3-7.fc44 fedora 54.2 KiB krb5-libs x86_64 0:1.21.3-12.fc44 fedora 2.4 MiB libacl x86_64 0:2.3.2-6.fc44 fedora 35.8 KiB libarchive x86_64 0:3.8.4-2.fc44 fedora 991.2 KiB libassuan x86_64 0:2.5.7-5.fc44 fedora 163.8 KiB libattr x86_64 0:2.5.2-8.fc44 fedora 24.3 KiB libblkid x86_64 0:2.41.3-12.fc44 fedora 274.3 KiB libbrotli x86_64 0:1.2.0-3.fc44 fedora 865.0 KiB libcap x86_64 0:2.77-2.fc44 fedora 212.1 KiB libcap-ng x86_64 0:0.9-7.fc44 fedora 68.7 KiB libcom_err x86_64 0:1.47.3-4.fc44 fedora 63.0 KiB libcurl x86_64 0:8.18.0-3.fc44 fedora 1.0 MiB libeconf x86_64 0:0.7.9-3.fc44 fedora 64.8 KiB libevent x86_64 0:2.1.12-17.fc44 fedora 978.7 KiB libfdisk x86_64 0:2.41.3-12.fc44 fedora 388.3 KiB libffi x86_64 0:3.5.2-2.fc44 fedora 87.7 KiB libfsverity x86_64 0:1.6-4.fc44 fedora 28.4 KiB libgcc x86_64 0:16.0.1-0.5.fc44 fedora 270.6 KiB libgcrypt x86_64 0:1.11.2-1.fc44 fedora 1.6 MiB libgomp x86_64 0:16.0.1-0.5.fc44 fedora 571.8 KiB libgpg-error x86_64 0:1.58-2.fc44 fedora 941.6 KiB libidn2 x86_64 0:2.3.8-3.fc44 fedora 556.4 KiB libksba x86_64 0:1.6.7-5.fc44 fedora 414.4 KiB liblastlog2 x86_64 0:2.41.3-12.fc44 fedora 37.6 KiB libmount x86_64 0:2.41.3-12.fc44 fedora 388.6 KiB libnghttp2 x86_64 0:1.68.0-3.fc44 fedora 166.1 KiB libnghttp3 x86_64 0:1.15.0-1.fc44 fedora 159.2 KiB libpkgconf x86_64 0:2.3.0-4.fc44 fedora 78.0 KiB libpsl x86_64 0:0.21.5-7.fc44 fedora 76.3 KiB libselinux x86_64 0:3.10-0.rc2.1.fc44 fedora 201.0 KiB libselinux-utils x86_64 0:3.10-0.rc2.1.fc44 fedora 305.9 KiB libsemanage x86_64 0:3.10-0.rc2.1.fc44 fedora 312.4 KiB libsepol x86_64 0:3.10-0.rc2.1.fc44 fedora 870.0 KiB libsmartcols x86_64 0:2.41.3-12.fc44 fedora 188.3 KiB libssh x86_64 0:0.11.3-3.fc44 fedora 595.2 KiB libssh-config noarch 0:0.11.3-3.fc44 fedora 277.0 B libstdc++ x86_64 0:16.0.1-0.5.fc44 fedora 2.9 MiB libtasn1 x86_64 0:4.20.0-3.fc44 fedora 180.2 KiB libtool-ltdl x86_64 0:2.5.4-10.fc44 fedora 70.0 KiB libunistring x86_64 0:1.1-11.fc44 fedora 1.7 MiB libusb1 x86_64 0:1.0.29-5.fc44 fedora 175.2 KiB libuuid x86_64 0:2.41.3-12.fc44 fedora 37.2 KiB libverto x86_64 0:0.3.2-12.fc44 fedora 25.3 KiB libxcrypt x86_64 0:4.5.2-3.fc44 fedora 293.2 KiB libxml2 x86_64 0:2.12.10-6.fc44 fedora 1.8 MiB libzstd x86_64 0:1.5.7-5.fc44 fedora 956.1 KiB linkdupes x86_64 0:0.7.2-3.fc44 fedora 826.6 KiB lua-libs x86_64 0:5.4.8-5.fc44 fedora 281.7 KiB lua-srpm-macros noarch 0:1-17.fc44 fedora 1.3 KiB lz4-libs x86_64 0:1.10.0-4.fc44 fedora 157.3 KiB mpfr x86_64 0:4.2.2-3.fc44 fedora 849.1 KiB ncurses-base noarch 0:6.5-9.20250614.fc44 fedora 328.1 KiB ncurses-libs x86_64 0:6.5-9.20250614.fc44 fedora 965.0 KiB nettle x86_64 0:3.10.1-3.fc44 fedora 794.3 KiB ngtcp2 x86_64 0:1.19.0-2.fc44 fedora 330.2 KiB ngtcp2-crypto-ossl x86_64 0:1.19.0-2.fc44 fedora 51.6 KiB npth x86_64 0:1.8-4.fc44 fedora 49.5 KiB ocaml-srpm-macros noarch 0:11-3.fc44 fedora 1.9 KiB openblas-srpm-macros noarch 0:2-21.fc44 fedora 112.0 B openldap x86_64 0:2.6.10-7.fc44 fedora 667.5 KiB openssl-libs x86_64 1:3.5.4-2.fc44 fedora 9.2 MiB p11-kit x86_64 0:0.25.8-2.fc44 fedora 2.3 MiB p11-kit-trust x86_64 0:0.25.8-2.fc44 fedora 458.3 KiB package-notes-srpm-macros noarch 0:0.5-15.fc44 fedora 1.6 KiB pam-libs x86_64 0:1.7.2-1.fc44 fedora 130.5 KiB pcre2 x86_64 0:10.47-1.fc44.1 fedora 718.6 KiB pcre2-syntax noarch 0:10.47-1.fc44.1 fedora 281.9 KiB perl-srpm-macros noarch 0:1-61.fc44 fedora 861.0 B pkgconf x86_64 0:2.3.0-4.fc44 fedora 88.3 KiB pkgconf-m4 noarch 0:2.3.0-4.fc44 fedora 14.4 KiB pkgconf-pkg-config x86_64 0:2.3.0-4.fc44 fedora 989.0 B policycoreutils x86_64 0:3.10-0.rc2.1.fc44 fedora 884.2 KiB popt x86_64 0:1.19-10.fc44 fedora 132.6 KiB publicsuffix-list-dafsa noarch 0:20260116-1.fc44 fedora 70.4 KiB pyproject-srpm-macros noarch 0:1.18.6-2.fc44 fedora 1.9 KiB python-srpm-macros noarch 0:3.14-10.fc44 fedora 51.6 KiB qt5-srpm-macros noarch 0:5.15.18-2.fc44 fedora 500.0 B qt6-srpm-macros noarch 0:6.10.1-2.fc44 fedora 464.0 B readline x86_64 0:8.3-4.fc44 fedora 519.5 KiB rpm x86_64 0:6.0.1-2.fc44 fedora 3.1 MiB rpm-build-libs x86_64 0:6.0.1-2.fc44 fedora 276.3 KiB rpm-libs x86_64 0:6.0.1-2.fc44 fedora 961.2 KiB rpm-plugin-selinux x86_64 0:6.0.1-2.fc44 fedora 11.9 KiB rpm-sequoia x86_64 0:1.10.0-2.fc44 fedora 2.5 MiB rpm-sign-libs x86_64 0:6.0.1-2.fc44 fedora 39.6 KiB rust-srpm-macros noarch 0:28.4-3.fc44 fedora 5.5 KiB selinux-policy noarch 0:42.22-1.fc44 fedora 32.0 KiB selinux-policy-targeted noarch 0:42.22-1.fc44 fedora 18.5 MiB setup noarch 0:2.15.0-28.fc44 fedora 724.9 KiB sqlite-libs x86_64 0:3.51.2-1.fc44 fedora 1.6 MiB systemd-libs x86_64 0:259-9.fc44 fedora 2.4 MiB systemd-standalone-sysusers x86_64 0:259-9.fc44 fedora 301.6 KiB tpm2-tss x86_64 0:4.1.3-9.fc44 fedora 1.6 MiB tree-sitter-srpm-macros noarch 0:0.4.2-2.fc44 fedora 8.3 KiB util-linux-core x86_64 0:2.41.3-12.fc44 fedora 1.5 MiB xxhash-libs x86_64 0:0.8.3-4.fc44 fedora 94.0 KiB xz-libs x86_64 1:5.8.2-2.fc44 fedora 217.7 KiB zig-srpm-macros noarch 0:1-8.fc44 fedora 1.3 KiB zip x86_64 0:3.0-45.fc44 fedora 698.0 KiB zlib-ng-compat x86_64 0:2.3.2-3.fc44 fedora 169.6 KiB zstd x86_64 0:1.5.7-5.fc44 fedora 502.4 KiB Installing groups: Buildsystem building group Transaction Summary: Installing: 182 packages Total size of inbound packages is 69 MiB. Need to download 69 MiB. After this operation, 223 MiB extra will be used (install 223 MiB, remove 0 B). [ 1/182] bzip2-0:1.0.8-23.fc44.x86_64 100% | 356.9 KiB/s | 52.1 KiB | 00m00s [ 2/182] cpio-0:2.15-9.fc44.x86_64 100% | 2.2 MiB/s | 293.3 KiB | 00m00s [ 3/182] coreutils-0:9.9-4.fc44.x86_64 100% | 3.6 MiB/s | 1.2 MiB | 00m00s [ 4/182] bash-0:5.3.9-3.fc44.x86_64 100% | 5.4 MiB/s | 1.9 MiB | 00m00s [ 5/182] diffutils-0:3.12-5.fc44.x86_6 100% | 5.1 MiB/s | 395.3 KiB | 00m00s [ 6/182] fedora-release-common-0:44-0. 100% | 493.3 KiB/s | 24.7 KiB | 00m00s [ 7/182] glibc-minimal-langpack-0:2.43 100% | 2.1 MiB/s | 78.5 KiB | 00m00s [ 8/182] findutils-1:4.10.0-7.fc44.x86 100% | 13.5 MiB/s | 552.5 KiB | 00m00s [ 9/182] grep-0:3.12-3.fc44.x86_64 100% | 3.5 MiB/s | 301.6 KiB | 00m00s [ 10/182] gzip-0:1.14-2.fc44.x86_64 100% | 2.4 MiB/s | 179.1 KiB | 00m00s [ 11/182] patch-0:2.8-4.fc44.x86_64 100% | 2.0 MiB/s | 115.2 KiB | 00m00s [ 12/182] redhat-rpm-config-0:343-19.fc 100% | 1.4 MiB/s | 79.4 KiB | 00m00s [ 13/182] info-0:7.2-7.fc44.x86_64 100% | 933.4 KiB/s | 182.9 KiB | 00m00s [ 14/182] rpm-build-0:6.0.1-2.fc44.x86_ 100% | 1.5 MiB/s | 139.9 KiB | 00m00s [ 15/182] sed-0:4.9-7.fc44.x86_64 100% | 3.1 MiB/s | 319.2 KiB | 00m00s [ 16/182] unzip-0:6.0-69.fc44.x86_64 100% | 3.3 MiB/s | 199.6 KiB | 00m00s [ 17/182] tar-2:1.35-8.fc44.x86_64 100% | 10.6 MiB/s | 868.2 KiB | 00m00s [ 18/182] shadow-utils-2:4.19.0-6.fc44. 100% | 8.6 MiB/s | 1.3 MiB | 00m00s [ 19/182] gawk-0:5.3.2-3.fc44.x86_64 100% | 23.2 MiB/s | 1.1 MiB | 00m00s [ 20/182] which-0:2.23-4.fc44.x86_64 100% | 334.9 KiB/s | 42.2 KiB | 00m00s [ 21/182] util-linux-0:2.41.3-12.fc44.x 100% | 24.1 MiB/s | 1.2 MiB | 00m00s [ 22/182] xz-1:5.8.2-2.fc44.x86_64 100% | 2.9 MiB/s | 607.2 KiB | 00m00s [ 23/182] glibc-0:2.43-1.fc44.x86_64 100% | 35.9 MiB/s | 2.4 MiB | 00m00s [ 24/182] bzip2-libs-0:1.0.8-23.fc44.x8 100% | 1.3 MiB/s | 43.8 KiB | 00m00s [ 25/182] coreutils-common-0:9.9-4.fc44 100% | 38.3 MiB/s | 2.1 MiB | 00m00s [ 26/182] ncurses-libs-0:6.5-9.20250614 100% | 3.1 MiB/s | 343.1 KiB | 00m00s [ 27/182] gmp-1:6.3.0-5.fc44.x86_64 100% | 8.5 MiB/s | 322.5 KiB | 00m00s [ 28/182] filesystem-0:3.18-52.fc44.x86 100% | 5.2 MiB/s | 1.3 MiB | 00m00s [ 29/182] libattr-0:2.5.2-8.fc44.x86_64 100% | 527.3 KiB/s | 17.9 KiB | 00m00s [ 30/182] libselinux-0:3.10-0.rc2.1.fc4 100% | 2.9 MiB/s | 101.8 KiB | 00m00s [ 31/182] libacl-0:2.3.2-6.fc44.x86_64 100% | 167.7 KiB/s | 24.8 KiB | 00m00s [ 32/182] libcap-0:2.77-2.fc44.x86_64 100% | 941.8 KiB/s | 88.5 KiB | 00m00s [ 33/182] openssl-libs-1:3.5.4-2.fc44.x 100% | 45.7 MiB/s | 2.7 MiB | 00m00s [ 34/182] glibc-common-0:2.43-1.fc44.x8 100% | 10.1 MiB/s | 370.6 KiB | 00m00s [ 35/182] systemd-libs-0:259-9.fc44.x86 100% | 11.3 MiB/s | 865.2 KiB | 00m00s [ 36/182] pcre2-0:10.47-1.fc44.1.x86_64 100% | 7.5 MiB/s | 277.7 KiB | 00m00s [ 37/182] fedora-repos-0:44-0.1.noarch 100% | 108.0 KiB/s | 9.1 KiB | 00m00s [ 38/182] ed-0:1.22.4-2.fc44.x86_64 100% | 2.1 MiB/s | 85.6 KiB | 00m00s [ 39/182] R-srpm-macros-0:1.3.4-3.fc44. 100% | 318.2 KiB/s | 10.8 KiB | 00m00s [ 40/182] ansible-srpm-macros-0:1-20.1. 100% | 591.3 KiB/s | 20.1 KiB | 00m00s [ 41/182] cmake-srpm-macros-0:3.31.10-5 100% | 313.0 KiB/s | 10.6 KiB | 00m00s [ 42/182] build-reproducibility-srpm-ma 100% | 236.4 KiB/s | 13.0 KiB | 00m00s [ 43/182] dwz-0:0.16-3.fc44.x86_64 100% | 2.5 MiB/s | 138.9 KiB | 00m00s [ 44/182] efi-srpm-macros-0:6-6.fc44.no 100% | 663.3 KiB/s | 22.6 KiB | 00m00s [ 45/182] fonts-srpm-macros-1:5.0.0-2.f 100% | 805.3 KiB/s | 27.4 KiB | 00m00s [ 46/182] file-0:5.46-9.fc44.x86_64 100% | 742.4 KiB/s | 49.0 KiB | 00m00s [ 47/182] filesystem-srpm-macros-0:3.18 100% | 422.7 KiB/s | 26.6 KiB | 00m00s [ 48/182] forge-srpm-macros-0:0.4.0-4.f 100% | 587.8 KiB/s | 20.0 KiB | 00m00s [ 49/182] ghc-srpm-macros-0:1.9.2-4.fc4 100% | 261.1 KiB/s | 8.9 KiB | 00m00s [ 50/182] fpc-srpm-macros-0:1.3-16.fc44 100% | 124.0 KiB/s | 7.9 KiB | 00m00s [ 51/182] gap-srpm-macros-0:2-2.fc44.no 100% | 142.8 KiB/s | 9.1 KiB | 00m00s [ 52/182] gnat-srpm-macros-0:7-2.fc44.n 100% | 257.1 KiB/s | 8.7 KiB | 00m00s [ 53/182] go-srpm-macros-0:3.8.0-2.fc44 100% | 742.7 KiB/s | 28.2 KiB | 00m00s [ 54/182] java-srpm-macros-0:1-8.fc44.n 100% | 213.6 KiB/s | 8.1 KiB | 00m00s [ 55/182] kernel-srpm-macros-0:1.0-28.f 100% | 266.1 KiB/s | 9.0 KiB | 00m00s [ 56/182] openblas-srpm-macros-0:2-21.f 100% | 229.6 KiB/s | 7.8 KiB | 00m00s [ 57/182] lua-srpm-macros-0:1-17.fc44.n 100% | 111.0 KiB/s | 8.9 KiB | 00m00s [ 58/182] ocaml-srpm-macros-0:11-3.fc44 100% | 115.9 KiB/s | 9.3 KiB | 00m00s [ 59/182] package-notes-srpm-macros-0:0 100% | 270.4 KiB/s | 9.2 KiB | 00m00s [ 60/182] python-srpm-macros-0:3.14-10. 100% | 704.6 KiB/s | 24.0 KiB | 00m00s [ 61/182] qt5-srpm-macros-0:5.15.18-2.f 100% | 255.5 KiB/s | 8.7 KiB | 00m00s [ 62/182] perl-srpm-macros-0:1-61.fc44. 100% | 75.9 KiB/s | 8.4 KiB | 00m00s [ 63/182] qt6-srpm-macros-0:6.10.1-2.fc 100% | 271.9 KiB/s | 9.2 KiB | 00m00s [ 64/182] pyproject-srpm-macros-0:1.18. 100% | 121.8 KiB/s | 13.5 KiB | 00m00s [ 65/182] rust-srpm-macros-0:28.4-3.fc4 100% | 325.4 KiB/s | 11.1 KiB | 00m00s [ 66/182] tree-sitter-srpm-macros-0:0.4 100% | 299.3 KiB/s | 13.5 KiB | 00m00s [ 67/182] rpm-0:6.0.1-2.fc44.x86_64 100% | 10.1 MiB/s | 578.3 KiB | 00m00s [ 68/182] debugedit-0:5.2-6.fc44.x86_64 100% | 2.4 MiB/s | 86.7 KiB | 00m00s [ 69/182] zip-0:3.0-45.fc44.x86_64 100% | 5.0 MiB/s | 264.4 KiB | 00m00s [ 70/182] elfutils-libelf-0:0.194-3.fc4 100% | 3.3 MiB/s | 205.1 KiB | 00m00s [ 71/182] elfutils-0:0.194-3.fc44.x86_6 100% | 7.9 MiB/s | 583.9 KiB | 00m00s [ 72/182] libgcc-0:16.0.1-0.5.fc44.x86_ 100% | 2.7 MiB/s | 117.4 KiB | 00m00s [ 73/182] libarchive-0:3.8.4-2.fc44.x86 100% | 7.4 MiB/s | 441.4 KiB | 00m00s [ 74/182] popt-0:1.19-10.fc44.x86_64 100% | 1.6 MiB/s | 66.9 KiB | 00m00s [ 75/182] libstdc++-0:16.0.1-0.5.fc44.x 100% | 13.3 MiB/s | 940.1 KiB | 00m00s [ 76/182] rpm-build-libs-0:6.0.1-2.fc44 100% | 3.1 MiB/s | 132.2 KiB | 00m00s [ 77/182] readline-0:8.3-4.fc44.x86_64 100% | 3.5 MiB/s | 229.8 KiB | 00m00s [ 78/182] zig-srpm-macros-0:1-8.fc44.no 100% | 28.5 KiB/s | 8.8 KiB | 00m00s [ 79/182] audit-libs-0:4.1.3-1.fc44.x86 100% | 4.0 MiB/s | 142.1 KiB | 00m00s [ 80/182] libeconf-0:0.7.9-3.fc44.x86_6 100% | 1.0 MiB/s | 36.2 KiB | 00m00s [ 81/182] libsemanage-0:3.10-0.rc2.1.fc 100% | 3.5 MiB/s | 127.2 KiB | 00m00s [ 82/182] libxcrypt-0:4.5.2-3.fc44.x86_ 100% | 3.7 MiB/s | 131.2 KiB | 00m00s [ 83/182] pam-libs-0:1.7.2-1.fc44.x86_6 100% | 1.7 MiB/s | 59.1 KiB | 00m00s [ 84/182] rpm-libs-0:6.0.1-2.fc44.x86_6 100% | 2.0 MiB/s | 415.5 KiB | 00m00s [ 85/182] zstd-0:1.5.7-5.fc44.x86_64 100% | 977.2 KiB/s | 192.5 KiB | 00m00s [ 86/182] xz-libs-1:5.8.2-2.fc44.x86_64 100% | 1.3 MiB/s | 116.8 KiB | 00m00s [ 87/182] mpfr-0:4.2.2-3.fc44.x86_64 100% | 3.8 MiB/s | 357.8 KiB | 00m00s [ 88/182] libcap-ng-0:0.9-7.fc44.x86_64 100% | 414.1 KiB/s | 32.7 KiB | 00m00s [ 89/182] libblkid-0:2.41.3-12.fc44.x86 100% | 1.5 MiB/s | 129.4 KiB | 00m00s [ 90/182] libfdisk-0:2.41.3-12.fc44.x86 100% | 4.7 MiB/s | 168.1 KiB | 00m00s [ 91/182] liblastlog2-0:2.41.3-12.fc44. 100% | 670.3 KiB/s | 23.5 KiB | 00m00s [ 92/182] setup-0:2.15.0-28.fc44.noarch 100% | 701.7 KiB/s | 157.2 KiB | 00m00s [ 93/182] libmount-0:2.41.3-12.fc44.x86 100% | 4.9 MiB/s | 171.0 KiB | 00m00s [ 94/182] libsmartcols-0:2.41.3-12.fc44 100% | 2.4 MiB/s | 86.9 KiB | 00m00s [ 95/182] libuuid-0:2.41.3-12.fc44.x86_ 100% | 783.7 KiB/s | 26.6 KiB | 00m00s [ 96/182] glibc-gconv-extra-0:2.43-1.fc 100% | 34.5 MiB/s | 1.6 MiB | 00m00s [ 97/182] zlib-ng-compat-0:2.3.2-3.fc44 100% | 1.2 MiB/s | 93.0 KiB | 00m00s [ 98/182] util-linux-core-0:2.41.3-12.f 100% | 6.5 MiB/s | 557.8 KiB | 00m00s [ 99/182] ncurses-base-0:6.5-9.20250614 100% | 2.5 MiB/s | 88.2 KiB | 00m00s [100/182] gnulib-l10n-0:20241231-2.fc44 100% | 4.0 MiB/s | 150.3 KiB | 00m00s [101/182] ca-certificates-0:2025.2.80_v 100% | 23.2 MiB/s | 973.5 KiB | 00m00s [102/182] libsepol-0:3.10-0.rc2.1.fc44. 100% | 5.5 MiB/s | 367.7 KiB | 00m00s [103/182] crypto-policies-0:20251128-3. 100% | 1.4 MiB/s | 98.3 KiB | 00m00s [104/182] fedora-repos-rawhide-0:44-0.1 100% | 149.1 KiB/s | 8.6 KiB | 00m00s [105/182] fedora-gpg-keys-0:44-0.1.noar 100% | 1.7 MiB/s | 138.8 KiB | 00m00s [106/182] pcre2-syntax-0:10.47-1.fc44.1 100% | 2.6 MiB/s | 164.7 KiB | 00m00s [107/182] linkdupes-0:0.7.2-3.fc44.x86_ 100% | 9.4 MiB/s | 355.1 KiB | 00m00s [108/182] add-determinism-0:0.7.2-3.fc4 100% | 17.9 MiB/s | 881.3 KiB | 00m00s [109/182] curl-0:8.18.0-3.fc44.x86_64 100% | 6.7 MiB/s | 241.1 KiB | 00m00s [110/182] elfutils-libs-0:0.194-3.fc44. 100% | 5.6 MiB/s | 282.8 KiB | 00m00s [111/182] elfutils-debuginfod-client-0: 100% | 1.3 MiB/s | 46.7 KiB | 00m00s [112/182] file-libs-0:5.46-9.fc44.x86_6 100% | 10.4 MiB/s | 853.4 KiB | 00m00s [113/182] libxml2-0:2.12.10-6.fc44.x86_ 100% | 18.1 MiB/s | 724.6 KiB | 00m00s [114/182] lz4-libs-0:1.10.0-4.fc44.x86_ 100% | 1.6 MiB/s | 77.7 KiB | 00m00s [115/182] libzstd-0:1.5.7-5.fc44.x86_64 100% | 5.0 MiB/s | 364.2 KiB | 00m00s [116/182] libgomp-0:16.0.1-0.5.fc44.x86 100% | 10.2 MiB/s | 376.8 KiB | 00m00s [117/182] rpm-sequoia-0:1.10.0-2.fc44.x 100% | 22.4 MiB/s | 939.7 KiB | 00m00s [118/182] sqlite-libs-0:3.51.2-1.fc44.x 100% | 19.5 MiB/s | 799.2 KiB | 00m00s [119/182] rpm-sign-libs-0:6.0.1-2.fc44. 100% | 231.7 KiB/s | 28.0 KiB | 00m00s [120/182] lua-libs-0:5.4.8-5.fc44.x86_6 100% | 1.0 MiB/s | 136.6 KiB | 00m00s [121/182] elfutils-default-yama-scope-0 100% | 350.2 KiB/s | 11.9 KiB | 00m00s [122/182] json-c-0:0.18-8.fc44.x86_64 100% | 1.0 MiB/s | 46.3 KiB | 00m00s [123/182] ima-evm-utils-libs-0:1.6.2-8. 100% | 881.2 KiB/s | 30.0 KiB | 00m00s [124/182] gpgverify-0:2.2-4.fc44.noarch 100% | 330.2 KiB/s | 11.2 KiB | 00m00s [125/182] libfsverity-0:1.6-4.fc44.x86_ 100% | 315.5 KiB/s | 19.2 KiB | 00m00s [126/182] gnupg2-0:2.4.9-4.fc44.x86_64 100% | 14.0 MiB/s | 1.7 MiB | 00m00s [127/182] gnupg2-dirmngr-0:2.4.9-4.fc44 100% | 7.7 MiB/s | 282.5 KiB | 00m00s [128/182] gnupg2-keyboxd-0:2.4.9-4.fc44 100% | 2.8 MiB/s | 97.4 KiB | 00m00s [129/182] gnupg2-gpgconf-0:2.4.9-4.fc44 100% | 2.6 MiB/s | 117.2 KiB | 00m00s [130/182] gnupg2-gpg-agent-0:2.4.9-4.fc 100% | 4.7 MiB/s | 281.4 KiB | 00m00s [131/182] gnupg2-verify-0:2.4.9-4.fc44. 100% | 4.9 MiB/s | 176.9 KiB | 00m00s [132/182] libassuan-0:2.5.7-5.fc44.x86_ 100% | 1.3 MiB/s | 68.9 KiB | 00m00s [133/182] libgcrypt-0:1.11.2-1.fc44.x86 100% | 9.5 MiB/s | 596.1 KiB | 00m00s [134/182] libgpg-error-0:1.58-2.fc44.x8 100% | 7.1 MiB/s | 254.1 KiB | 00m00s [135/182] npth-0:1.8-4.fc44.x86_64 100% | 495.2 KiB/s | 25.8 KiB | 00m00s [136/182] tpm2-tss-0:4.1.3-9.fc44.x86_6 100% | 8.6 MiB/s | 440.9 KiB | 00m00s [137/182] openldap-0:2.6.10-7.fc44.x86_ 100% | 4.4 MiB/s | 271.1 KiB | 00m00s [138/182] libksba-0:1.6.7-5.fc44.x86_64 100% | 2.5 MiB/s | 167.4 KiB | 00m00s [139/182] libusb1-0:1.0.29-5.fc44.x86_6 100% | 1.4 MiB/s | 82.8 KiB | 00m00s [140/182] libidn2-0:2.3.8-3.fc44.x86_64 100% | 2.8 MiB/s | 175.6 KiB | 00m00s [141/182] libtasn1-0:4.20.0-3.fc44.x86_ 100% | 473.0 KiB/s | 76.2 KiB | 00m00s [142/182] libunistring-0:1.1-11.fc44.x8 100% | 3.2 MiB/s | 547.8 KiB | 00m00s [143/182] gnutls-0:3.8.11-10.fc44.x86_6 100% | 3.8 MiB/s | 1.4 MiB | 00m00s [144/182] nettle-0:3.10.1-3.fc44.x86_64 100% | 7.0 MiB/s | 428.0 KiB | 00m00s [145/182] p11-kit-0:0.25.8-2.fc44.x86_6 100% | 9.7 MiB/s | 516.5 KiB | 00m00s [146/182] cyrus-sasl-lib-0:2.1.28-35.fc 100% | 19.5 MiB/s | 800.7 KiB | 00m00s [147/182] libffi-0:3.5.2-2.fc44.x86_64 100% | 1.2 MiB/s | 42.4 KiB | 00m00s [148/182] libtool-ltdl-0:2.5.4-10.fc44. 100% | 480.9 KiB/s | 37.0 KiB | 00m00s [149/182] libevent-0:2.1.12-17.fc44.x86 100% | 3.4 MiB/s | 287.4 KiB | 00m00s [150/182] gdbm-libs-1:1.23-11.fc44.x86_ 100% | 1.7 MiB/s | 58.8 KiB | 00m00s [151/182] jansson-0:2.14-4.fc44.x86_64 100% | 1.4 MiB/s | 47.1 KiB | 00m00s [152/182] pkgconf-pkg-config-0:2.3.0-4. 100% | 286.1 KiB/s | 9.7 KiB | 00m00s [153/182] alternatives-0:1.33-5.fc44.x8 100% | 498.2 KiB/s | 40.8 KiB | 00m00s [154/182] pkgconf-0:2.3.0-4.fc44.x86_64 100% | 1.3 MiB/s | 45.0 KiB | 00m00s [155/182] libpkgconf-0:2.3.0-4.fc44.x86 100% | 1.1 MiB/s | 38.8 KiB | 00m00s [156/182] pkgconf-m4-0:2.3.0-4.fc44.noa 100% | 200.9 KiB/s | 14.1 KiB | 00m00s [157/182] fedora-release-0:44-0.10.noar 100% | 146.8 KiB/s | 13.5 KiB | 00m00s [158/182] p11-kit-trust-0:0.25.8-2.fc44 100% | 1.2 MiB/s | 144.8 KiB | 00m00s [159/182] binutils-0:2.45.50-19.fc44.x8 100% | 18.3 MiB/s | 6.1 MiB | 00m00s [160/182] systemd-standalone-sysusers-0 100% | 1.1 MiB/s | 148.3 KiB | 00m00s [161/182] xxhash-libs-0:0.8.3-4.fc44.x8 100% | 542.4 KiB/s | 41.2 KiB | 00m00s [162/182] fedora-release-identity-basic 100% | 60.8 KiB/s | 14.3 KiB | 00m00s [163/182] libcurl-0:8.18.0-3.fc44.x86_6 100% | 1.7 MiB/s | 455.1 KiB | 00m00s [164/182] krb5-libs-0:1.21.3-12.fc44.x8 100% | 11.1 MiB/s | 793.5 KiB | 00m00s [165/182] libnghttp2-0:1.68.0-3.fc44.x8 100% | 1.3 MiB/s | 77.2 KiB | 00m00s [166/182] libbrotli-0:1.2.0-3.fc44.x86_ 100% | 4.8 MiB/s | 347.8 KiB | 00m00s [167/182] gdb-minimal-0:17.1-2.fc44.x86 100% | 9.6 MiB/s | 4.8 MiB | 00m01s [168/182] libnghttp3-0:1.15.0-1.fc44.x8 100% | 2.3 MiB/s | 73.9 KiB | 00m00s [169/182] libssh-0:0.11.3-3.fc44.x86_64 100% | 6.9 MiB/s | 246.2 KiB | 00m00s [170/182] libpsl-0:0.21.5-7.fc44.x86_64 100% | 1.0 MiB/s | 65.3 KiB | 00m00s [171/182] ngtcp2-0:1.19.0-2.fc44.x86_64 100% | 4.4 MiB/s | 154.8 KiB | 00m00s [172/182] ngtcp2-crypto-ossl-0:1.19.0-2 100% | 805.0 KiB/s | 27.4 KiB | 00m00s [173/182] libcom_err-0:1.47.3-4.fc44.x8 100% | 630.4 KiB/s | 27.1 KiB | 00m00s [174/182] keyutils-libs-0:1.6.3-7.fc44. 100% | 685.4 KiB/s | 31.5 KiB | 00m00s [175/182] libverto-0:0.3.2-12.fc44.x86_ 100% | 621.4 KiB/s | 21.1 KiB | 00m00s [176/182] publicsuffix-list-dafsa-0:202 100% | 1.8 MiB/s | 60.3 KiB | 00m00s [177/182] libssh-config-0:0.11.3-3.fc44 100% | 96.6 KiB/s | 8.9 KiB | 00m00s [178/182] policycoreutils-0:3.10-0.rc2. 100% | 4.0 MiB/s | 258.6 KiB | 00m00s [179/182] selinux-policy-targeted-0:42. 100% | 50.8 MiB/s | 6.8 MiB | 00m00s [180/182] rpm-plugin-selinux-0:6.0.1-2. 100% | 563.5 KiB/s | 19.2 KiB | 00m00s [181/182] libselinux-utils-0:3.10-0.rc2 100% | 728.5 KiB/s | 119.5 KiB | 00m00s [182/182] selinux-policy-0:42.22-1.fc44 100% | 406.1 KiB/s | 67.8 KiB | 00m00s -------------------------------------------------------------------------------- [182/182] Total 100% | 14.3 MiB/s | 68.5 MiB | 00m05s Running transaction Importing OpenPGP key 0x6D9F90A6: UserID : "Fedora (44) " Fingerprint: 36F612DCF27F7D1A48A835E4DBFCF71C6D9F90A6 From : file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-44-primary The key was successfully imported. Importing OpenPGP key 0x6D9F90A6: UserID : "Fedora (44) " Fingerprint: 36F612DCF27F7D1A48A835E4DBFCF71C6D9F90A6 From : file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-44-primary The key was successfully imported. Importing OpenPGP key 0x31645531: UserID : "Fedora (43) " Fingerprint: C6E7F081CF80E13146676E88829B606631645531 From : file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-43-primary The key was successfully imported. Importing OpenPGP key 0xF577861E: UserID : "Fedora (45) " Fingerprint: 4F50A6114CD5C6976A7F1179655A4B02F577861E From : file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-45-primary The key was successfully imported. [ 1/184] Verify package files 100% | 666.0 B/s | 182.0 B | 00m00s [ 2/184] Prepare transaction 100% | 3.4 KiB/s | 182.0 B | 00m00s [ 3/184] Installing libgcc-0:16.0.1-0. 100% | 266.0 MiB/s | 272.3 KiB | 00m00s [ 4/184] Installing libssh-config-0:0. 100% | 0.0 B/s | 816.0 B | 00m00s [ 5/184] Installing publicsuffix-list- 100% | 0.0 B/s | 71.1 KiB | 00m00s [ 6/184] Installing fedora-release-ide 100% | 0.0 B/s | 920.0 B | 00m00s [ 7/184] Installing fedora-gpg-keys-0: 100% | 43.7 MiB/s | 179.0 KiB | 00m00s [ 8/184] Installing fedora-repos-rawhi 100% | 0.0 B/s | 2.4 KiB | 00m00s [ 9/184] Installing fedora-repos-0:44- 100% | 0.0 B/s | 5.7 KiB | 00m00s [ 10/184] Installing fedora-release-com 100% | 24.3 MiB/s | 24.9 KiB | 00m00s [ 11/184] Installing fedora-release-0:4 100% | 17.3 KiB/s | 124.0 B | 00m00s >>> Running sysusers scriptlet: setup-0:2.15.0-28.fc44.noarch >>> Finished sysusers scriptlet: setup-0:2.15.0-28.fc44.noarch >>> Scriptlet output: >>> Creating group 'adm' with GID 4. >>> Creating group 'audio' with GID 63. >>> Creating group 'cdrom' with GID 11. >>> Creating group 'clock' with GID 103. >>> Creating group 'dialout' with GID 18. >>> Creating group 'disk' with GID 6. >>> Creating group 'floppy' with GID 19. >>> Creating group 'ftp' with GID 50. >>> Creating group 'games' with GID 20. >>> Creating group 'input' with GID 104. >>> Creating group 'kmem' with GID 9. >>> Creating group 'kvm' with GID 36. >>> Creating group 'lock' with GID 54. >>> Creating group 'lp' with GID 7. >>> Creating group 'mail' with GID 12. >>> Creating group 'man' with GID 15. >>> Creating group 'mem' with GID 8. >>> Creating group 'nobody' with GID 65534. >>> Creating group 'render' with GID 105. >>> Creating group 'root' with GID 0. >>> Creating group 'sgx' with GID 106. >>> Creating group 'sys' with GID 3. >>> Creating group 'tape' with GID 33. >>> Creating group 'tty' with GID 5. >>> Creating group 'users' with GID 100. >>> Creating group 'utmp' with GID 22. >>> Creating group 'video' with GID 39. >>> Creating group 'wheel' with GID 10. >>> Creating user 'adm' (adm) with UID 3 and GID 4. >>> Creating group 'bin' with GID 1. >>> Creating user 'bin' (bin) with UID 1 and GID 1. >>> Creating group 'daemon' with GID 2. >>> Creating user 'daemon' (daemon) with UID 2 and GID 2. >>> Creating user 'ftp' (FTP User) with UID 14 and GID 50. >>> Creating user 'games' (games) with UID 12 and GID 100. >>> Creating user 'halt' (halt) with UID 7 and GID 0. >>> Creating user 'lp' (lp) with UID 4 and GID 7. >>> Creating user 'mail' (mail) with UID 8 and GID 12. >>> Creating user 'nobody' (Kernel Overflow User) with UID 65534 and GID 65534. >>> Creating user 'operator' (operator) with UID 11 and GID 0. >>> Creating user 'root' (Super User) with UID 0 and GID 0. >>> Creating user 'shutdown' (shutdown) with UID 6 and GID 0. >>> Creating user 'sync' (sync) with UID 5 and GID 0. >>> [ 12/184] Installing setup-0:2.15.0-28. 100% | 47.6 MiB/s | 730.6 KiB | 00m00s >>> [RPM] /etc/hosts created as /etc/hosts.rpmnew [ 13/184] Installing filesystem-0:3.18- 100% | 2.8 MiB/s | 212.8 KiB | 00m00s [ 14/184] Installing pkgconf-m4-0:2.3.0 100% | 0.0 B/s | 14.8 KiB | 00m00s [ 15/184] Installing pcre2-syntax-0:10. 100% | 277.7 MiB/s | 284.3 KiB | 00m00s [ 16/184] Installing gnulib-l10n-0:2024 100% | 215.5 MiB/s | 661.9 KiB | 00m00s [ 17/184] Installing coreutils-common-0 100% | 401.0 MiB/s | 11.2 MiB | 00m00s [ 18/184] Installing ncurses-base-0:6.5 100% | 86.3 MiB/s | 353.5 KiB | 00m00s [ 19/184] Installing bash-0:5.3.9-3.fc4 100% | 273.6 MiB/s | 8.5 MiB | 00m00s [ 20/184] Installing glibc-common-0:2.4 100% | 60.3 MiB/s | 1.0 MiB | 00m00s [ 21/184] Installing glibc-gconv-extra- 100% | 287.1 MiB/s | 7.5 MiB | 00m00s [ 22/184] Installing glibc-0:2.43-1.fc4 100% | 182.9 MiB/s | 7.0 MiB | 00m00s [ 23/184] Installing ncurses-libs-0:6.5 100% | 237.2 MiB/s | 971.5 KiB | 00m00s [ 24/184] Installing glibc-minimal-lang 100% | 0.0 B/s | 124.0 B | 00m00s [ 25/184] Installing zlib-ng-compat-0:2 100% | 166.4 MiB/s | 170.4 KiB | 00m00s [ 26/184] Installing bzip2-libs-0:1.0.8 100% | 79.7 MiB/s | 81.6 KiB | 00m00s [ 27/184] Installing libgpg-error-0:1.5 100% | 61.7 MiB/s | 947.5 KiB | 00m00s [ 28/184] Installing libstdc++-0:16.0.1 100% | 364.8 MiB/s | 2.9 MiB | 00m00s [ 29/184] Installing libassuan-0:2.5.7- 100% | 161.8 MiB/s | 165.7 KiB | 00m00s [ 30/184] Installing libgcrypt-0:1.11.2 100% | 394.0 MiB/s | 1.6 MiB | 00m00s [ 31/184] Installing readline-0:8.3-4.f 100% | 254.7 MiB/s | 521.6 KiB | 00m00s [ 32/184] Installing gmp-1:6.3.0-5.fc44 100% | 399.2 MiB/s | 817.5 KiB | 00m00s [ 33/184] Installing xz-libs-1:5.8.2-2. 100% | 213.7 MiB/s | 218.8 KiB | 00m00s [ 34/184] Installing libuuid-0:2.41.3-1 100% | 0.0 B/s | 38.2 KiB | 00m00s [ 35/184] Installing popt-0:1.19-10.fc4 100% | 68.0 MiB/s | 139.3 KiB | 00m00s [ 36/184] Installing libzstd-0:1.5.7-5. 100% | 311.6 MiB/s | 957.4 KiB | 00m00s [ 37/184] Installing elfutils-libelf-0: 100% | 376.3 MiB/s | 1.1 MiB | 00m00s [ 38/184] Installing npth-0:1.8-4.fc44. 100% | 0.0 B/s | 50.6 KiB | 00m00s [ 39/184] Installing libblkid-0:2.41.3- 100% | 269.0 MiB/s | 275.4 KiB | 00m00s [ 40/184] Installing systemd-libs-0:259 100% | 348.9 MiB/s | 2.4 MiB | 00m00s [ 41/184] Installing libxcrypt-0:4.5.2- 100% | 289.0 MiB/s | 295.9 KiB | 00m00s [ 42/184] Installing libsepol-0:3.10-0. 100% | 283.5 MiB/s | 871.0 KiB | 00m00s [ 43/184] Installing sqlite-libs-0:3.51 100% | 318.1 MiB/s | 1.6 MiB | 00m00s [ 44/184] Installing gnupg2-gpgconf-0:2 100% | 18.9 MiB/s | 251.8 KiB | 00m00s [ 45/184] Installing libattr-0:2.5.2-8. 100% | 0.0 B/s | 25.2 KiB | 00m00s [ 46/184] Installing libacl-0:2.3.2-6.f 100% | 0.0 B/s | 36.6 KiB | 00m00s [ 47/184] Installing pcre2-0:10.47-1.fc 100% | 351.6 MiB/s | 720.0 KiB | 00m00s [ 48/184] Installing libselinux-0:3.10- 100% | 197.5 MiB/s | 202.3 KiB | 00m00s [ 49/184] Installing grep-0:3.12-3.fc44 100% | 62.7 MiB/s | 1.0 MiB | 00m00s [ 50/184] Installing sed-0:4.9-7.fc44.x 100% | 56.3 MiB/s | 865.4 KiB | 00m00s [ 51/184] Installing findutils-1:4.10.0 100% | 110.0 MiB/s | 1.9 MiB | 00m00s [ 52/184] Installing libtasn1-0:4.20.0- 100% | 177.7 MiB/s | 182.0 KiB | 00m00s [ 53/184] Installing libunistring-0:1.1 100% | 346.9 MiB/s | 1.7 MiB | 00m00s [ 54/184] Installing libidn2-0:2.3.8-3. 100% | 61.0 MiB/s | 562.6 KiB | 00m00s [ 55/184] Installing crypto-policies-0: 100% | 38.5 MiB/s | 157.7 KiB | 00m00s [ 56/184] Installing xz-1:5.8.2-2.fc44. 100% | 76.1 MiB/s | 1.4 MiB | 00m00s [ 57/184] Installing libmount-0:2.41.3- 100% | 380.6 MiB/s | 389.7 KiB | 00m00s [ 58/184] Installing gnupg2-verify-0:2. 100% | 27.2 MiB/s | 361.7 KiB | 00m00s [ 59/184] Installing dwz-0:0.16-3.fc44. 100% | 22.0 MiB/s | 292.3 KiB | 00m00s [ 60/184] Installing mpfr-0:4.2.2-3.fc4 100% | 276.9 MiB/s | 850.8 KiB | 00m00s [ 61/184] Installing gawk-0:5.3.2-3.fc4 100% | 101.9 MiB/s | 1.8 MiB | 00m00s [ 62/184] Installing libksba-0:1.6.7-5. 100% | 203.6 MiB/s | 416.9 KiB | 00m00s [ 63/184] Installing unzip-0:6.0-69.fc4 100% | 33.8 MiB/s | 449.3 KiB | 00m00s [ 64/184] Installing file-libs-0:5.46-9 100% | 659.0 MiB/s | 11.9 MiB | 00m00s [ 65/184] Installing file-0:5.46-9.fc44 100% | 8.3 MiB/s | 101.6 KiB | 00m00s [ 66/184] Installing diffutils-0:3.12-5 100% | 92.5 MiB/s | 1.6 MiB | 00m00s [ 67/184] Installing libeconf-0:0.7.9-3 100% | 64.9 MiB/s | 66.4 KiB | 00m00s [ 68/184] Installing libcap-ng-0:0.9-7. 100% | 68.9 MiB/s | 70.5 KiB | 00m00s [ 69/184] Installing audit-libs-0:4.1.3 100% | 191.9 MiB/s | 393.1 KiB | 00m00s [ 70/184] Installing pam-libs-0:1.7.2-1 100% | 129.8 MiB/s | 132.9 KiB | 00m00s [ 71/184] Installing libcap-0:2.77-2.fc 100% | 16.3 MiB/s | 217.2 KiB | 00m00s [ 72/184] Installing libsemanage-0:3.10 100% | 306.8 MiB/s | 314.1 KiB | 00m00s [ 73/184] Installing libsmartcols-0:2.4 100% | 184.9 MiB/s | 189.3 KiB | 00m00s [ 74/184] Installing lua-libs-0:5.4.8-5 100% | 276.6 MiB/s | 283.2 KiB | 00m00s [ 75/184] Installing json-c-0:0.18-8.fc 100% | 81.9 MiB/s | 83.9 KiB | 00m00s [ 76/184] Installing libffi-0:3.5.2-2.f 100% | 87.0 MiB/s | 89.1 KiB | 00m00s [ 77/184] Installing p11-kit-0:0.25.8-2 100% | 115.8 MiB/s | 2.3 MiB | 00m00s [ 78/184] Installing alternatives-0:1.3 100% | 5.2 MiB/s | 63.6 KiB | 00m00s [ 79/184] Installing p11-kit-trust-0:0. 100% | 22.5 MiB/s | 460.0 KiB | 00m00s [ 80/184] Installing ngtcp2-0:1.19.0-2. 100% | 162.0 MiB/s | 331.7 KiB | 00m00s [ 81/184] Installing openssl-libs-1:3.5 100% | 367.4 MiB/s | 9.2 MiB | 00m00s [ 82/184] Installing coreutils-0:9.9-4. 100% | 161.3 MiB/s | 5.5 MiB | 00m00s [ 83/184] Installing ca-certificates-0: 100% | 2.1 MiB/s | 2.5 MiB | 00m01s [ 84/184] Installing gzip-0:1.14-2.fc44 100% | 26.5 MiB/s | 407.1 KiB | 00m00s [ 85/184] Installing rpm-sequoia-0:1.10 100% | 352.3 MiB/s | 2.5 MiB | 00m00s [ 86/184] Installing libfsverity-0:1.6- 100% | 0.0 B/s | 29.4 KiB | 00m00s [ 87/184] Installing libevent-0:2.1.12- 100% | 319.8 MiB/s | 982.4 KiB | 00m00s [ 88/184] Installing ngtcp2-crypto-ossl 100% | 51.2 MiB/s | 52.5 KiB | 00m00s [ 89/184] Installing util-linux-core-0: 100% | 82.4 MiB/s | 1.5 MiB | 00m00s [ 90/184] Installing zip-0:3.0-45.fc44. 100% | 49.0 MiB/s | 701.9 KiB | 00m00s [ 91/184] Installing gnupg2-keyboxd-0:2 100% | 33.0 MiB/s | 202.5 KiB | 00m00s [ 92/184] Installing libpsl-0:0.21.5-7. 100% | 75.6 MiB/s | 77.4 KiB | 00m00s [ 93/184] Installing tar-2:1.35-8.fc44. 100% | 141.8 MiB/s | 3.0 MiB | 00m00s [ 94/184] Installing linkdupes-0:0.7.2- 100% | 53.9 MiB/s | 828.0 KiB | 00m00s [ 95/184] Installing libselinux-utils-0 100% | 22.3 MiB/s | 320.1 KiB | 00m00s [ 96/184] Installing liblastlog2-0:2.41 100% | 6.5 MiB/s | 39.8 KiB | 00m00s [ 97/184] Installing systemd-standalone 100% | 21.1 MiB/s | 302.1 KiB | 00m00s [ 98/184] Installing rpm-libs-0:6.0.1-2 100% | 313.4 MiB/s | 962.8 KiB | 00m00s [ 99/184] Installing libusb1-0:1.0.29-5 100% | 21.6 MiB/s | 176.9 KiB | 00m00s >>> Running sysusers scriptlet: tpm2-tss-0:4.1.3-9.fc44.x86_64 >>> Finished sysusers scriptlet: tpm2-tss-0:4.1.3-9.fc44.x86_64 >>> Scriptlet output: >>> Creating group 'tss' with GID 59. >>> Creating user 'tss' (Account used for TPM access) with UID 59 and GID 59. >>> [100/184] Installing tpm2-tss-0:4.1.3-9 100% | 272.2 MiB/s | 1.6 MiB | 00m00s [101/184] Installing ima-evm-utils-libs 100% | 60.4 MiB/s | 61.9 KiB | 00m00s [102/184] Installing gnupg2-gpg-agent-0 100% | 33.5 MiB/s | 686.5 KiB | 00m00s [103/184] Installing libfdisk-0:2.41.3- 100% | 126.8 MiB/s | 389.4 KiB | 00m00s [104/184] Installing util-linux-0:2.41. 100% | 102.4 MiB/s | 3.6 MiB | 00m00s [105/184] Installing policycoreutils-0: 100% | 35.7 MiB/s | 912.7 KiB | 00m00s [106/184] Installing selinux-policy-0:4 100% | 1.6 MiB/s | 33.6 KiB | 00m00s [107/184] Installing selinux-policy-tar 100% | 189.7 MiB/s | 14.8 MiB | 00m00s [108/184] Installing zstd-0:1.5.7-5.fc4 100% | 30.9 MiB/s | 506.0 KiB | 00m00s [109/184] Installing libxml2-0:2.12.10- 100% | 104.2 MiB/s | 1.8 MiB | 00m00s [110/184] Installing nettle-0:3.10.1-3. 100% | 259.6 MiB/s | 797.4 KiB | 00m00s [111/184] Installing gnutls-0:3.8.11-10 100% | 373.1 MiB/s | 3.7 MiB | 00m00s [112/184] Installing bzip2-0:1.0.8-23.f 100% | 7.5 MiB/s | 99.5 KiB | 00m00s [113/184] Installing add-determinism-0: 100% | 126.1 MiB/s | 2.3 MiB | 00m00s [114/184] Installing build-reproducibil 100% | 0.0 B/s | 1.5 KiB | 00m00s [115/184] Installing cpio-0:2.15-9.fc44 100% | 69.0 MiB/s | 1.1 MiB | 00m00s [116/184] Installing ed-0:1.22.4-2.fc44 100% | 12.3 MiB/s | 151.4 KiB | 00m00s [117/184] Installing patch-0:2.8-4.fc44 100% | 17.1 MiB/s | 228.1 KiB | 00m00s [118/184] Installing lz4-libs-0:1.10.0- 100% | 154.6 MiB/s | 158.4 KiB | 00m00s [119/184] Installing libarchive-0:3.8.4 100% | 323.3 MiB/s | 993.1 KiB | 00m00s [120/184] Installing libgomp-0:16.0.1-0 100% | 279.9 MiB/s | 573.2 KiB | 00m00s [121/184] Installing libtool-ltdl-0:2.5 100% | 69.5 MiB/s | 71.1 KiB | 00m00s [122/184] Installing gdbm-libs-1:1.23-1 100% | 128.3 MiB/s | 131.3 KiB | 00m00s [123/184] Installing cyrus-sasl-lib-0:2 100% | 128.4 MiB/s | 2.3 MiB | 00m00s [124/184] Installing openldap-0:2.6.10- 100% | 218.5 MiB/s | 671.3 KiB | 00m00s [125/184] Installing gnupg2-dirmngr-0:2 100% | 31.1 MiB/s | 636.7 KiB | 00m00s [126/184] Installing gnupg2-0:2.4.9-4.f 100% | 216.9 MiB/s | 6.5 MiB | 00m00s [127/184] Installing rpm-sign-libs-0:6. 100% | 39.5 MiB/s | 40.5 KiB | 00m00s [128/184] Installing gpgverify-0:2.2-4. 100% | 0.0 B/s | 9.4 KiB | 00m00s [129/184] Installing jansson-0:2.14-4.f 100% | 88.2 MiB/s | 90.3 KiB | 00m00s [130/184] Installing libpkgconf-0:2.3.0 100% | 77.3 MiB/s | 79.2 KiB | 00m00s [131/184] Installing pkgconf-0:2.3.0-4. 100% | 6.8 MiB/s | 90.8 KiB | 00m00s [132/184] Installing pkgconf-pkg-config 100% | 147.8 KiB/s | 1.8 KiB | 00m00s [133/184] Installing xxhash-libs-0:0.8. 100% | 93.2 MiB/s | 95.4 KiB | 00m00s [134/184] Installing libbrotli-0:1.2.0- 100% | 282.3 MiB/s | 867.3 KiB | 00m00s [135/184] Installing libnghttp2-0:1.68. 100% | 163.3 MiB/s | 167.3 KiB | 00m00s [136/184] Installing libnghttp3-0:1.15. 100% | 156.8 MiB/s | 160.6 KiB | 00m00s [137/184] Installing keyutils-libs-0:1. 100% | 54.3 MiB/s | 55.6 KiB | 00m00s [138/184] Installing libcom_err-0:1.47. 100% | 62.6 MiB/s | 64.1 KiB | 00m00s [139/184] Installing libverto-0:0.3.2-1 100% | 26.4 MiB/s | 27.1 KiB | 00m00s [140/184] Installing krb5-libs-0:1.21.3 100% | 295.6 MiB/s | 2.4 MiB | 00m00s [141/184] Installing libssh-0:0.11.3-3. 100% | 291.6 MiB/s | 597.2 KiB | 00m00s [142/184] Installing libcurl-0:8.18.0-3 100% | 331.4 MiB/s | 1.0 MiB | 00m00s [143/184] Installing curl-0:8.18.0-3.fc 100% | 20.5 MiB/s | 482.6 KiB | 00m00s [144/184] Installing rpm-0:6.0.1-2.fc44 100% | 79.7 MiB/s | 2.6 MiB | 00m00s [145/184] Installing cmake-srpm-macros- 100% | 0.0 B/s | 804.0 B | 00m00s [146/184] Installing efi-srpm-macros-0: 100% | 0.0 B/s | 41.2 KiB | 00m00s [147/184] Installing java-srpm-macros-0 100% | 0.0 B/s | 1.1 KiB | 00m00s [148/184] Installing lua-srpm-macros-0: 100% | 0.0 B/s | 1.9 KiB | 00m00s [149/184] Installing tree-sitter-srpm-m 100% | 0.0 B/s | 9.3 KiB | 00m00s [150/184] Installing zig-srpm-macros-0: 100% | 0.0 B/s | 1.9 KiB | 00m00s [151/184] Installing filesystem-srpm-ma 100% | 0.0 B/s | 38.9 KiB | 00m00s [152/184] Installing elfutils-default-y 100% | 408.6 KiB/s | 2.0 KiB | 00m00s [153/184] Installing elfutils-libs-0:0. 100% | 233.4 MiB/s | 717.0 KiB | 00m00s [154/184] Installing elfutils-debuginfo 100% | 6.0 MiB/s | 86.0 KiB | 00m00s [155/184] Installing elfutils-0:0.194-3 100% | 147.9 MiB/s | 3.0 MiB | 00m00s [156/184] Installing binutils-0:2.45.50 100% | 327.2 MiB/s | 27.5 MiB | 00m00s [157/184] Installing gdb-minimal-0:17.1 100% | 292.5 MiB/s | 14.3 MiB | 00m00s [158/184] Installing debugedit-0:5.2-6. 100% | 16.7 MiB/s | 221.6 KiB | 00m00s [159/184] Installing rpm-build-libs-0:6 100% | 270.6 MiB/s | 277.1 KiB | 00m00s [160/184] Installing rust-srpm-macros-0 100% | 0.0 B/s | 6.4 KiB | 00m00s [161/184] Installing qt6-srpm-macros-0: 100% | 0.0 B/s | 740.0 B | 00m00s [162/184] Installing qt5-srpm-macros-0: 100% | 0.0 B/s | 776.0 B | 00m00s [163/184] Installing perl-srpm-macros-0 100% | 0.0 B/s | 1.1 KiB | 00m00s [164/184] Installing package-notes-srpm 100% | 0.0 B/s | 2.0 KiB | 00m00s [165/184] Installing openblas-srpm-macr 100% | 0.0 B/s | 392.0 B | 00m00s [166/184] Installing ocaml-srpm-macros- 100% | 0.0 B/s | 2.1 KiB | 00m00s [167/184] Installing kernel-srpm-macros 100% | 0.0 B/s | 2.3 KiB | 00m00s [168/184] Installing gnat-srpm-macros-0 100% | 0.0 B/s | 1.3 KiB | 00m00s [169/184] Installing ghc-srpm-macros-0: 100% | 0.0 B/s | 1.0 KiB | 00m00s [170/184] Installing gap-srpm-macros-0: 100% | 0.0 B/s | 2.7 KiB | 00m00s [171/184] Installing fpc-srpm-macros-0: 100% | 0.0 B/s | 420.0 B | 00m00s [172/184] Installing ansible-srpm-macro 100% | 35.4 MiB/s | 36.2 KiB | 00m00s [173/184] Installing redhat-rpm-config- 100% | 92.7 MiB/s | 189.9 KiB | 00m00s [174/184] Installing forge-srpm-macros- 100% | 0.0 B/s | 40.3 KiB | 00m00s [175/184] Installing fonts-srpm-macros- 100% | 55.7 MiB/s | 57.0 KiB | 00m00s [176/184] Installing go-srpm-macros-0:3 100% | 12.3 MiB/s | 63.0 KiB | 00m00s [177/184] Installing rpm-build-0:6.0.1- 100% | 21.2 MiB/s | 303.7 KiB | 00m00s [178/184] Installing pyproject-srpm-mac 100% | 0.0 B/s | 2.5 KiB | 00m00s [179/184] Installing R-srpm-macros-0:1. 100% | 0.0 B/s | 4.2 KiB | 00m00s [180/184] Installing python-srpm-macros 100% | 0.0 B/s | 52.9 KiB | 00m00s [181/184] Installing rpm-plugin-selinux 100% | 0.0 B/s | 12.9 KiB | 00m00s [182/184] Installing which-0:2.23-4.fc4 100% | 6.0 MiB/s | 85.6 KiB | 00m00s [183/184] Installing shadow-utils-2:4.1 100% | 138.7 MiB/s | 4.0 MiB | 00m00s [184/184] Installing info-0:7.2-7.fc44. 100% | 52.3 KiB/s | 358.3 KiB | 00m07s Complete! Finish: installing minimal buildroot with dnf5 Start: creating root cache Finish: creating root cache Finish: chroot init INFO: Installed packages: INFO: R-srpm-macros-1.3.4-3.fc44.noarch add-determinism-0.7.2-3.fc44.x86_64 alternatives-1.33-5.fc44.x86_64 ansible-srpm-macros-1-20.1.fc44.noarch audit-libs-4.1.3-1.fc44.x86_64 bash-5.3.9-3.fc44.x86_64 binutils-2.45.50-19.fc44.x86_64 build-reproducibility-srpm-macros-0.7.2-3.fc44.noarch bzip2-1.0.8-23.fc44.x86_64 bzip2-libs-1.0.8-23.fc44.x86_64 ca-certificates-2025.2.80_v9.0.304-5.fc44.noarch cmake-srpm-macros-3.31.10-5.fc44.noarch coreutils-9.9-4.fc44.x86_64 coreutils-common-9.9-4.fc44.x86_64 cpio-2.15-9.fc44.x86_64 crypto-policies-20251128-3.git19878fe.fc44.noarch curl-8.18.0-3.fc44.x86_64 cyrus-sasl-lib-2.1.28-35.fc44.x86_64 debugedit-5.2-6.fc44.x86_64 diffutils-3.12-5.fc44.x86_64 dwz-0.16-3.fc44.x86_64 ed-1.22.4-2.fc44.x86_64 efi-srpm-macros-6-6.fc44.noarch elfutils-0.194-3.fc44.x86_64 elfutils-debuginfod-client-0.194-3.fc44.x86_64 elfutils-default-yama-scope-0.194-3.fc44.noarch elfutils-libelf-0.194-3.fc44.x86_64 elfutils-libs-0.194-3.fc44.x86_64 fedora-gpg-keys-44-0.1.noarch fedora-release-44-0.10.noarch fedora-release-common-44-0.10.noarch fedora-release-identity-basic-44-0.10.noarch fedora-repos-44-0.1.noarch fedora-repos-rawhide-44-0.1.noarch file-5.46-9.fc44.x86_64 file-libs-5.46-9.fc44.x86_64 filesystem-3.18-52.fc44.x86_64 filesystem-srpm-macros-3.18-52.fc44.noarch findutils-4.10.0-7.fc44.x86_64 fonts-srpm-macros-5.0.0-2.fc44.noarch forge-srpm-macros-0.4.0-4.fc44.noarch fpc-srpm-macros-1.3-16.fc44.noarch gap-srpm-macros-2-2.fc44.noarch gawk-5.3.2-3.fc44.x86_64 gdb-minimal-17.1-2.fc44.x86_64 gdbm-libs-1.23-11.fc44.x86_64 ghc-srpm-macros-1.9.2-4.fc44.noarch glibc-2.43-1.fc44.x86_64 glibc-common-2.43-1.fc44.x86_64 glibc-gconv-extra-2.43-1.fc44.x86_64 glibc-minimal-langpack-2.43-1.fc44.x86_64 gmp-6.3.0-5.fc44.x86_64 gnat-srpm-macros-7-2.fc44.noarch gnulib-l10n-20241231-2.fc44.noarch gnupg2-2.4.9-4.fc44.x86_64 gnupg2-dirmngr-2.4.9-4.fc44.x86_64 gnupg2-gpg-agent-2.4.9-4.fc44.x86_64 gnupg2-gpgconf-2.4.9-4.fc44.x86_64 gnupg2-keyboxd-2.4.9-4.fc44.x86_64 gnupg2-verify-2.4.9-4.fc44.x86_64 gnutls-3.8.11-10.fc44.x86_64 go-srpm-macros-3.8.0-2.fc44.noarch gpg-pubkey-36f612dcf27f7d1a48a835e4dbfcf71c6d9f90a6-6786af3b gpg-pubkey-4f50a6114cd5c6976a7f1179655a4b02f577861e-6888bc98 gpg-pubkey-c6e7f081cf80e13146676e88829b606631645531-66b6dccf gpgverify-2.2-4.fc44.noarch grep-3.12-3.fc44.x86_64 gzip-1.14-2.fc44.x86_64 ima-evm-utils-libs-1.6.2-8.fc44.x86_64 info-7.2-7.fc44.x86_64 jansson-2.14-4.fc44.x86_64 java-srpm-macros-1-8.fc44.noarch json-c-0.18-8.fc44.x86_64 kernel-srpm-macros-1.0-28.fc44.noarch keyutils-libs-1.6.3-7.fc44.x86_64 krb5-libs-1.21.3-12.fc44.x86_64 libacl-2.3.2-6.fc44.x86_64 libarchive-3.8.4-2.fc44.x86_64 libassuan-2.5.7-5.fc44.x86_64 libattr-2.5.2-8.fc44.x86_64 libblkid-2.41.3-12.fc44.x86_64 libbrotli-1.2.0-3.fc44.x86_64 libcap-2.77-2.fc44.x86_64 libcap-ng-0.9-7.fc44.x86_64 libcom_err-1.47.3-4.fc44.x86_64 libcurl-8.18.0-3.fc44.x86_64 libeconf-0.7.9-3.fc44.x86_64 libevent-2.1.12-17.fc44.x86_64 libfdisk-2.41.3-12.fc44.x86_64 libffi-3.5.2-2.fc44.x86_64 libfsverity-1.6-4.fc44.x86_64 libgcc-16.0.1-0.5.fc44.x86_64 libgcrypt-1.11.2-1.fc44.x86_64 libgomp-16.0.1-0.5.fc44.x86_64 libgpg-error-1.58-2.fc44.x86_64 libidn2-2.3.8-3.fc44.x86_64 libksba-1.6.7-5.fc44.x86_64 liblastlog2-2.41.3-12.fc44.x86_64 libmount-2.41.3-12.fc44.x86_64 libnghttp2-1.68.0-3.fc44.x86_64 libnghttp3-1.15.0-1.fc44.x86_64 libpkgconf-2.3.0-4.fc44.x86_64 libpsl-0.21.5-7.fc44.x86_64 libselinux-3.10-0.rc2.1.fc44.x86_64 libselinux-utils-3.10-0.rc2.1.fc44.x86_64 libsemanage-3.10-0.rc2.1.fc44.x86_64 libsepol-3.10-0.rc2.1.fc44.x86_64 libsmartcols-2.41.3-12.fc44.x86_64 libssh-0.11.3-3.fc44.x86_64 libssh-config-0.11.3-3.fc44.noarch libstdc++-16.0.1-0.5.fc44.x86_64 libtasn1-4.20.0-3.fc44.x86_64 libtool-ltdl-2.5.4-10.fc44.x86_64 libunistring-1.1-11.fc44.x86_64 libusb1-1.0.29-5.fc44.x86_64 libuuid-2.41.3-12.fc44.x86_64 libverto-0.3.2-12.fc44.x86_64 libxcrypt-4.5.2-3.fc44.x86_64 libxml2-2.12.10-6.fc44.x86_64 libzstd-1.5.7-5.fc44.x86_64 linkdupes-0.7.2-3.fc44.x86_64 lua-libs-5.4.8-5.fc44.x86_64 lua-srpm-macros-1-17.fc44.noarch lz4-libs-1.10.0-4.fc44.x86_64 mpfr-4.2.2-3.fc44.x86_64 ncurses-base-6.5-9.20250614.fc44.noarch ncurses-libs-6.5-9.20250614.fc44.x86_64 nettle-3.10.1-3.fc44.x86_64 ngtcp2-1.19.0-2.fc44.x86_64 ngtcp2-crypto-ossl-1.19.0-2.fc44.x86_64 npth-1.8-4.fc44.x86_64 ocaml-srpm-macros-11-3.fc44.noarch openblas-srpm-macros-2-21.fc44.noarch openldap-2.6.10-7.fc44.x86_64 openssl-libs-3.5.4-2.fc44.x86_64 p11-kit-0.25.8-2.fc44.x86_64 p11-kit-trust-0.25.8-2.fc44.x86_64 package-notes-srpm-macros-0.5-15.fc44.noarch pam-libs-1.7.2-1.fc44.x86_64 patch-2.8-4.fc44.x86_64 pcre2-10.47-1.fc44.1.x86_64 pcre2-syntax-10.47-1.fc44.1.noarch perl-srpm-macros-1-61.fc44.noarch pkgconf-2.3.0-4.fc44.x86_64 pkgconf-m4-2.3.0-4.fc44.noarch pkgconf-pkg-config-2.3.0-4.fc44.x86_64 policycoreutils-3.10-0.rc2.1.fc44.x86_64 popt-1.19-10.fc44.x86_64 publicsuffix-list-dafsa-20260116-1.fc44.noarch pyproject-srpm-macros-1.18.6-2.fc44.noarch python-srpm-macros-3.14-10.fc44.noarch qt5-srpm-macros-5.15.18-2.fc44.noarch qt6-srpm-macros-6.10.1-2.fc44.noarch readline-8.3-4.fc44.x86_64 redhat-rpm-config-343-19.fc44.noarch rpm-6.0.1-2.fc44.x86_64 rpm-build-6.0.1-2.fc44.x86_64 rpm-build-libs-6.0.1-2.fc44.x86_64 rpm-libs-6.0.1-2.fc44.x86_64 rpm-plugin-selinux-6.0.1-2.fc44.x86_64 rpm-sequoia-1.10.0-2.fc44.x86_64 rpm-sign-libs-6.0.1-2.fc44.x86_64 rust-srpm-macros-28.4-3.fc44.noarch sed-4.9-7.fc44.x86_64 selinux-policy-42.22-1.fc44.noarch selinux-policy-targeted-42.22-1.fc44.noarch setup-2.15.0-28.fc44.noarch shadow-utils-4.19.0-6.fc44.x86_64 sqlite-libs-3.51.2-1.fc44.x86_64 systemd-libs-259-9.fc44.x86_64 systemd-standalone-sysusers-259-9.fc44.x86_64 tar-1.35-8.fc44.x86_64 tpm2-tss-4.1.3-9.fc44.x86_64 tree-sitter-srpm-macros-0.4.2-2.fc44.noarch unzip-6.0-69.fc44.x86_64 util-linux-2.41.3-12.fc44.x86_64 util-linux-core-2.41.3-12.fc44.x86_64 which-2.23-4.fc44.x86_64 xxhash-libs-0.8.3-4.fc44.x86_64 xz-5.8.2-2.fc44.x86_64 xz-libs-5.8.2-2.fc44.x86_64 zig-srpm-macros-1-8.fc44.noarch zip-3.0-45.fc44.x86_64 zlib-ng-compat-2.3.2-3.fc44.x86_64 zstd-1.5.7-5.fc44.x86_64 Start: buildsrpm Start: rpmbuild -bs Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1769990400 Wrote: /builddir/build/SRPMS/python-anthropic-0.77.0-1.fc44.src.rpm Finish: rpmbuild -bs INFO: chroot_scan: 1 files copied to /var/lib/copr-rpmbuild/results/chroot_scan INFO: /var/lib/mock/fedora-rawhide-x86_64-1770044012.124196/root/var/log/dnf5.log INFO: chroot_scan: creating tarball /var/lib/copr-rpmbuild/results/chroot_scan.tar.gz /bin/tar: Removing leading `/' from member names Finish: buildsrpm INFO: Done(/var/lib/copr-rpmbuild/workspace/workdir-ot6bhjbo/python-anthropic/python-anthropic.spec) Config(child) 0 minutes 28 seconds INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results INFO: Cleaning up build root ('cleanup_on_success=True') Start: clean chroot INFO: unmounting tmpfs. Finish: clean chroot INFO: Start(/var/lib/copr-rpmbuild/results/python-anthropic-0.77.0-1.fc44.src.rpm) Config(fedora-rawhide-x86_64) Start(bootstrap): chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1770044012.124196/root. INFO: reusing tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1770044012.124196/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start(bootstrap): cleaning package manager metadata Finish(bootstrap): cleaning package manager metadata Finish(bootstrap): chroot init Start: chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-1770044012.124196/root. INFO: calling preinit hooks INFO: enabled root cache Start: unpacking root cache Finish: unpacking root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin INFO: Buildroot is handled by package management downloaded with a bootstrap image: rpm-6.0.1-2.fc44.x86_64 rpm-sequoia-1.10.0-2.fc44.x86_64 dnf5-5.3.0.0-7.fc44.x86_64 dnf5-plugins-5.3.0.0-7.fc44.x86_64 Finish: chroot init Start: build phase for python-anthropic-0.77.0-1.fc44.src.rpm Start: build setup for python-anthropic-0.77.0-1.fc44.src.rpm Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1769990400 Wrote: /builddir/build/SRPMS/python-anthropic-0.77.0-1.fc44.src.rpm Updating and loading repositories: Copr repository 100% | 7.0 KiB/s | 1.5 KiB | 00m00s fedora 100% | 82.3 KiB/s | 23.8 KiB | 00m00s Repositories loaded. Package Arch Version Repository Size Installing: python3-devel x86_64 0:3.14.2-3.fc44 fedora 1.9 MiB python3-dirty-equals noarch 0:0.11-2.fc44 fedora 224.1 KiB python3-inline-snapshot noarch 0:0.31.1-4.fc44 fedora 747.7 KiB python3-pytest noarch 0:8.4.2-2.fc44 fedora 22.5 MiB python3-pytest-asyncio noarch 0:1.1.0-3.fc44 fedora 131.1 KiB python3-respx noarch 0:0.22.0-6.fc44 fedora 348.8 KiB tomcli noarch 0:0.10.1-4.fc44 fedora 150.3 KiB Installing dependencies: expat x86_64 0:2.7.3-2.fc44 fedora 316.8 KiB mpdecimal x86_64 0:4.0.1-3.fc44 fedora 217.1 KiB pyproject-rpm-macros noarch 0:1.18.6-2.fc44 fedora 115.6 KiB python-pip-wheel noarch 0:25.3-2.fc44 fedora 1.2 MiB python-rpm-macros noarch 0:3.14-10.fc44 fedora 27.6 KiB python3 x86_64 0:3.14.2-3.fc44 fedora 28.7 KiB python3-anyio noarch 0:4.12.1-3.fc44 fedora 1.5 MiB python3-asttokens noarch 0:3.0.1-1.fc44 fedora 199.7 KiB python3-certifi noarch 0:2025.07.09-4.fc44 fedora 7.4 KiB python3-click noarch 1:8.1.7-12.fc44 fedora 1.2 MiB python3-executing noarch 0:2.2.1-3.fc44 fedora 294.3 KiB python3-h11 noarch 0:0.16.0-6.fc44 fedora 279.9 KiB python3-httpcore noarch 0:1.0.9-6.fc44 fedora 853.9 KiB python3-httpx noarch 0:0.28.1-10.fc44 fedora 992.1 KiB python3-idna noarch 0:3.11-2.fc44 fedora 738.4 KiB python3-iniconfig noarch 0:2.3.0-2.fc44 fedora 49.8 KiB python3-libs x86_64 0:3.14.2-3.fc44 fedora 43.6 MiB python3-markdown-it-py noarch 0:3.0.0-14.fc44 fedora 541.5 KiB python3-mdurl noarch 0:0.1.2-14.fc44 fedora 44.0 KiB python3-packaging noarch 0:25.0-8.fc44 fedora 607.4 KiB python3-pluggy noarch 0:1.6.0-5.fc44 fedora 211.5 KiB python3-pygments noarch 0:2.19.1-9.fc44 fedora 11.3 MiB python3-rich noarch 0:14.3.2-1.fc44 fedora 3.4 MiB python3-rpm-generators noarch 0:14-14.fc44 fedora 81.7 KiB python3-rpm-macros noarch 0:3.14-10.fc44 fedora 6.5 KiB python3-tomlkit noarch 0:0.13.2-7.fc44 fedora 493.9 KiB tomcli+tomlkit noarch 0:0.10.1-4.fc44 fedora 0.0 B tzdata noarch 0:2025c-2.fc44 fedora 1.2 MiB Transaction Summary: Installing: 35 packages Total size of inbound packages is 21 MiB. Need to download 21 MiB. After this operation, 95 MiB extra will be used (install 95 MiB, remove 0 B). [ 1/35] python3-dirty-equals-0:0.11-2.f 100% | 285.9 KiB/s | 75.8 KiB | 00m00s [ 2/35] python3-inline-snapshot-0:0.31. 100% | 750.6 KiB/s | 226.7 KiB | 00m00s [ 3/35] python3-pytest-asyncio-0:1.1.0- 100% | 558.2 KiB/s | 41.3 KiB | 00m00s [ 4/35] python3-respx-0:0.22.0-6.fc44.n 100% | 965.3 KiB/s | 91.7 KiB | 00m00s [ 5/35] python3-pytest-0:8.4.2-2.fc44.n 100% | 5.2 MiB/s | 2.3 MiB | 00m00s [ 6/35] tomcli-0:0.10.1-4.fc44.noarch 100% | 460.0 KiB/s | 75.0 KiB | 00m00s [ 7/35] python3-executing-0:2.2.1-3.fc4 100% | 1.4 MiB/s | 77.7 KiB | 00m00s [ 8/35] python3-asttokens-0:3.0.1-1.fc4 100% | 486.4 KiB/s | 60.3 KiB | 00m00s [ 9/35] python3-devel-0:3.14.2-3.fc44.x 100% | 2.3 MiB/s | 436.3 KiB | 00m00s [10/35] python3-iniconfig-0:2.3.0-2.fc4 100% | 194.7 KiB/s | 26.3 KiB | 00m00s [11/35] python3-packaging-0:25.0-8.fc44 100% | 1.0 MiB/s | 161.2 KiB | 00m00s [12/35] python3-rich-0:14.3.2-1.fc44.no 100% | 2.1 MiB/s | 663.8 KiB | 00m00s [13/35] python3-pluggy-0:1.6.0-5.fc44.n 100% | 316.1 KiB/s | 61.6 KiB | 00m00s [14/35] python3-pygments-0:2.19.1-9.fc4 100% | 8.1 MiB/s | 2.7 MiB | 00m00s [15/35] python3-click-1:8.1.7-12.fc44.n 100% | 1.4 MiB/s | 254.5 KiB | 00m00s [16/35] python3-httpx-0:0.28.1-10.fc44. 100% | 776.1 KiB/s | 213.4 KiB | 00m00s [17/35] python3-markdown-it-py-0:3.0.0- 100% | 1.0 MiB/s | 205.2 KiB | 00m00s [18/35] python3-anyio-0:4.12.1-3.fc44.n 100% | 1.9 MiB/s | 314.2 KiB | 00m00s [19/35] python3-certifi-0:2025.07.09-4. 100% | 104.8 KiB/s | 15.1 KiB | 00m00s [20/35] python3-idna-0:3.11-2.fc44.noar 100% | 1.3 MiB/s | 124.7 KiB | 00m00s [21/35] python3-httpcore-0:1.0.9-6.fc44 100% | 641.2 KiB/s | 157.1 KiB | 00m00s [22/35] python3-libs-0:3.14.2-3.fc44.x8 100% | 20.9 MiB/s | 10.1 MiB | 00m00s [23/35] mpdecimal-0:4.0.1-3.fc44.x86_64 100% | 1.1 MiB/s | 99.1 KiB | 00m00s [24/35] expat-0:2.7.3-2.fc44.x86_64 100% | 1.0 MiB/s | 124.8 KiB | 00m00s [25/35] python-pip-wheel-0:25.3-2.fc44. 100% | 8.2 MiB/s | 1.1 MiB | 00m00s [26/35] python3-mdurl-0:0.1.2-14.fc44.n 100% | 356.5 KiB/s | 31.4 KiB | 00m00s [27/35] python3-h11-0:0.16.0-6.fc44.noa 100% | 988.2 KiB/s | 81.0 KiB | 00m00s [28/35] python3-0:3.14.2-3.fc44.x86_64 100% | 459.9 KiB/s | 28.1 KiB | 00m00s [29/35] tomcli+tomlkit-0:0.10.1-4.fc44. 100% | 220.5 KiB/s | 8.4 KiB | 00m00s [30/35] tzdata-0:2025c-2.fc44.noarch 100% | 3.5 MiB/s | 714.3 KiB | 00m00s [31/35] python3-tomlkit-0:0.13.2-7.fc44 100% | 2.3 MiB/s | 126.7 KiB | 00m00s [32/35] pyproject-rpm-macros-0:1.18.6-2 100% | 786.4 KiB/s | 44.8 KiB | 00m00s [33/35] python-rpm-macros-0:3.14-10.fc4 100% | 420.9 KiB/s | 19.8 KiB | 00m00s [34/35] python3-rpm-macros-0:3.14-10.fc 100% | 262.6 KiB/s | 12.3 KiB | 00m00s [35/35] python3-rpm-generators-0:14-14. 100% | 336.3 KiB/s | 28.6 KiB | 00m00s -------------------------------------------------------------------------------- [35/35] Total 100% | 10.7 MiB/s | 20.7 MiB | 00m02s Running transaction [ 1/37] Verify package files 100% | 454.0 B/s | 35.0 B | 00m00s [ 2/37] Prepare transaction 100% | 813.0 B/s | 35.0 B | 00m00s [ 3/37] Installing python-rpm-macros-0: 100% | 27.8 MiB/s | 28.5 KiB | 00m00s [ 4/37] Installing python3-rpm-macros-0 100% | 0.0 B/s | 6.8 KiB | 00m00s [ 5/37] Installing pyproject-rpm-macros 100% | 28.7 MiB/s | 117.5 KiB | 00m00s [ 6/37] Installing tzdata-0:2025c-2.fc4 100% | 47.2 MiB/s | 1.5 MiB | 00m00s [ 7/37] Installing python-pip-wheel-0:2 100% | 602.0 MiB/s | 1.2 MiB | 00m00s [ 8/37] Installing mpdecimal-0:4.0.1-3. 100% | 213.5 MiB/s | 218.6 KiB | 00m00s [ 9/37] Installing expat-0:2.7.3-2.fc44 100% | 15.6 MiB/s | 318.9 KiB | 00m00s [10/37] Installing python3-libs-0:3.14. 100% | 331.0 MiB/s | 44.0 MiB | 00m00s [11/37] Installing python3-0:3.14.2-3.f 100% | 2.3 MiB/s | 30.5 KiB | 00m00s [12/37] Installing python3-packaging-0: 100% | 121.1 MiB/s | 619.9 KiB | 00m00s [13/37] Installing python3-pygments-0:2 100% | 220.9 MiB/s | 11.5 MiB | 00m00s [14/37] Installing python3-certifi-0:20 100% | 10.9 MiB/s | 11.2 KiB | 00m00s [15/37] Installing python3-idna-0:3.11- 100% | 242.5 MiB/s | 744.9 KiB | 00m00s [16/37] Installing python3-anyio-0:4.12 100% | 246.1 MiB/s | 1.5 MiB | 00m00s [17/37] Installing python3-rpm-generato 100% | 81.0 MiB/s | 82.9 KiB | 00m00s [18/37] Installing python3-asttokens-0: 100% | 200.9 MiB/s | 205.7 KiB | 00m00s [19/37] Installing python3-executing-0: 100% | 146.8 MiB/s | 300.7 KiB | 00m00s [20/37] Installing python3-iniconfig-0: 100% | 52.9 MiB/s | 54.1 KiB | 00m00s [21/37] Installing python3-pluggy-0:1.6 100% | 70.9 MiB/s | 217.9 KiB | 00m00s [22/37] Installing python3-pytest-0:8.4 100% | 359.9 MiB/s | 22.7 MiB | 00m00s [23/37] Installing python3-click-1:8.1. 100% | 292.6 MiB/s | 1.2 MiB | 00m00s [24/37] Installing python3-mdurl-0:0.1. 100% | 48.3 MiB/s | 49.4 KiB | 00m00s [25/37] Installing python3-markdown-it- 100% | 31.8 MiB/s | 585.7 KiB | 00m00s [26/37] Installing python3-rich-0:14.3. 100% | 289.7 MiB/s | 3.5 MiB | 00m00s [27/37] Installing python3-h11-0:0.16.0 100% | 140.6 MiB/s | 287.9 KiB | 00m00s [28/37] Installing python3-httpcore-0:1 100% | 213.5 MiB/s | 874.4 KiB | 00m00s [29/37] Installing python3-httpx-0:0.28 100% | 246.0 MiB/s | 1.0 MiB | 00m00s [30/37] Installing python3-tomlkit-0:0. 100% | 245.7 MiB/s | 503.2 KiB | 00m00s [31/37] Installing tomcli-0:0.10.1-4.fc 100% | 11.4 MiB/s | 162.9 KiB | 00m00s [32/37] Installing tomcli+tomlkit-0:0.1 100% | 0.0 B/s | 124.0 B | 00m00s [33/37] Installing python3-respx-0:0.22 100% | 175.0 MiB/s | 358.4 KiB | 00m00s [34/37] Installing python3-inline-snaps 100% | 153.8 MiB/s | 787.3 KiB | 00m00s [35/37] Installing python3-pytest-async 100% | 66.0 MiB/s | 135.2 KiB | 00m00s [36/37] Installing python3-devel-0:3.14 100% | 95.0 MiB/s | 2.0 MiB | 00m00s [37/37] Installing python3-dirty-equals 100% | 9.1 MiB/s | 232.7 KiB | 00m00s Complete! Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1769990400 Wrote: /builddir/build/SRPMS/python-anthropic-0.77.0-1.fc44.src.rpm Updating and loading repositories: Copr repository 100% | 37.0 KiB/s | 1.5 KiB | 00m00s fedora 100% | 178.8 KiB/s | 23.8 KiB | 00m00s Repositories loaded. Nothing to do. Package "python3-devel-3.14.2-3.fc44.x86_64" is already installed. Package "python3-dirty-equals-0.11-2.fc44.noarch" is already installed. Package "python3-inline-snapshot-0.31.1-4.fc44.noarch" is already installed. Package "python3-pytest-8.4.2-2.fc44.noarch" is already installed. Package "python3-pytest-asyncio-1.1.0-3.fc44.noarch" is already installed. Package "python3-respx-0.22.0-6.fc44.noarch" is already installed. Package "tomcli-0.10.1-4.fc44.noarch" is already installed. Finish: build setup for python-anthropic-0.77.0-1.fc44.src.rpm Start: rpmbuild python-anthropic-0.77.0-1.fc44.src.rpm Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1769990400 Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.ZJStNc Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Z2xTS6 + umask 022 + cd /builddir/build/BUILD/python-anthropic-0.77.0-build + cd /builddir/build/BUILD/python-anthropic-0.77.0-build + rm -rf anthropic-0.77.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/anthropic-0.77.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd anthropic-0.77.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/remove-pytest-xdist-cli-args.diff + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + tomcli set pyproject.toml arrays replace build-system.requires 'hatchling.*' 'hatchling>=1.26.3,<=1.30.0' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.Kn9yrz + umask 022 + cd /builddir/build/BUILD/python-anthropic-0.77.0-build + cd anthropic-0.77.0 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/python-anthropic-0.77.0-build/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-anthropic-0.77.0-build/.pyproject-builddir + RPM_TOXENV=py314 + FEDORA=44 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-anthropic-0.77.0-build/pyproject-wheeldir --output /builddir/build/BUILD/python-anthropic-0.77.0-build/python-anthropic-0.77.0-1.fc44.x86_64-pyproject-buildrequires -x bedrock,vertex Handling hatchling>=1.26.3,<=1.30.0 from build-system.requires Requirement not satisfied: hatchling>=1.26.3,<=1.30.0 Handling hatch-fancy-pypi-readme from build-system.requires Requirement not satisfied: hatch-fancy-pypi-readme Exiting dependency generation pass: build backend + cat /builddir/build/BUILD/python-anthropic-0.77.0-build/python-anthropic-0.77.0-1.fc44.x86_64-pyproject-buildrequires + rm -rfv '*.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-anthropic-0.77.0-1.fc44.buildreqs.nosrc.rpm INFO: Going to install missing dynamic buildrequires Updating and loading repositories: Copr repository 100% | 116.6 KiB/s | 1.5 KiB | 00m00s fedora 100% | 283.2 KiB/s | 23.8 KiB | 00m00s Repositories loaded. Package "pyproject-rpm-macros-1.18.6-2.fc44.noarch" is already installed. Package "python3-devel-3.14.2-3.fc44.x86_64" is already installed. Package "python3-dirty-equals-0.11-2.fc44.noarch" is already installed. Package "python3-inline-snapshot-0.31.1-4.fc44.noarch" is already installed. Package "python3-pytest-8.4.2-2.fc44.noarch" is already installed. Package "python3-pytest-asyncio-1.1.0-3.fc44.noarch" is already installed. Package "python3-respx-0.22.0-6.fc44.noarch" is already installed. Package "python3-packaging-25.0-8.fc44.noarch" is already installed. Package "tomcli-0.10.1-4.fc44.noarch" is already installed. Package Arch Version Repository Size Installing: python3-hatch-fancy-pypi-readme noarch 0:25.1.0-6.fc44 fedora 53.3 KiB python3-hatchling noarch 0:1.28.0-2.fc44 fedora 657.8 KiB python3-pip noarch 0:25.3-2.fc44 fedora 11.2 MiB Installing dependencies: python3-pathspec noarch 0:1.0.3-2.fc44 fedora 372.4 KiB python3-trove-classifiers noarch 0:2026.1.14.14-2.fc44 fedora 111.9 KiB Transaction Summary: Installing: 5 packages Total size of inbound packages is 3 MiB. Need to download 3 MiB. After this operation, 12 MiB extra will be used (install 12 MiB, remove 0 B). [1/5] python3-hatch-fancy-pypi-readme-0 100% | 569.6 KiB/s | 39.3 KiB | 00m00s [2/5] python3-pathspec-0:1.0.3-2.fc44.n 100% | 4.8 MiB/s | 107.8 KiB | 00m00s [3/5] python3-hatchling-0:1.28.0-2.fc44 100% | 2.2 MiB/s | 229.1 KiB | 00m00s [4/5] python3-trove-classifiers-0:2026. 100% | 1.0 MiB/s | 34.2 KiB | 00m00s [5/5] python3-pip-0:25.3-2.fc44.noarch 100% | 15.7 MiB/s | 2.6 MiB | 00m00s -------------------------------------------------------------------------------- [5/5] Total 100% | 17.9 MiB/s | 3.0 MiB | 00m00s Running transaction [1/7] Verify package files 100% | 454.0 B/s | 5.0 B | 00m00s [2/7] Prepare transaction 100% | 250.0 B/s | 5.0 B | 00m00s [3/7] Installing python3-trove-classifi 100% | 7.5 MiB/s | 115.7 KiB | 00m00s [4/7] Installing python3-pathspec-0:1.0 100% | 96.3 MiB/s | 394.6 KiB | 00m00s [5/7] Installing python3-hatchling-0:1. 100% | 36.3 MiB/s | 707.0 KiB | 00m00s [6/7] Installing python3-hatch-fancy-py 100% | 3.8 MiB/s | 61.5 KiB | 00m00s [7/7] Installing python3-pip-0:25.3-2.f 100% | 147.2 MiB/s | 11.5 MiB | 00m00s Complete! Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1769990400 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.S8oN7A + umask 022 + cd /builddir/build/BUILD/python-anthropic-0.77.0-build + cd anthropic-0.77.0 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/python-anthropic-0.77.0-build/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-anthropic-0.77.0-build/.pyproject-builddir + RPM_TOXENV=py314 + FEDORA=44 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-anthropic-0.77.0-build/pyproject-wheeldir --output /builddir/build/BUILD/python-anthropic-0.77.0-build/python-anthropic-0.77.0-1.fc44.x86_64-pyproject-buildrequires -x bedrock,vertex Handling hatchling>=1.26.3,<=1.30.0 from build-system.requires Requirement satisfied: hatchling>=1.26.3,<=1.30.0 (installed: hatchling 1.28.0) Handling hatch-fancy-pypi-readme from build-system.requires Requirement satisfied: hatch-fancy-pypi-readme (installed: hatch-fancy-pypi-readme 25.1.0) Handling anyio<5,>=3.5.0 from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: anyio<5,>=3.5.0 (installed: anyio 4.12.1) Handling distro<2,>=1.7.0 from hook generated metadata: Requires-Dist (anthropic) Requirement not satisfied: distro<2,>=1.7.0 Handling docstring-parser<1,>=0.15 from hook generated metadata: Requires-Dist (anthropic) Requirement not satisfied: docstring-parser<1,>=0.15 Handling httpx<1,>=0.25.0 from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: httpx<1,>=0.25.0 (installed: httpx 0.28.1) Handling jiter<1,>=0.4.0 from hook generated metadata: Requires-Dist (anthropic) Requirement not satisfied: jiter<1,>=0.4.0 Handling pydantic<3,>=1.9.0 from hook generated metadata: Requires-Dist (anthropic) Requirement not satisfied: pydantic<3,>=1.9.0 Handling sniffio from hook generated metadata: Requires-Dist (anthropic) Requirement not satisfied: sniffio Handling typing-extensions<5,>=4.10 from hook generated metadata: Requires-Dist (anthropic) Requirement not satisfied: typing-extensions<5,>=4.10 Handling aiohttp; extra == 'aiohttp' from hook generated metadata: Requires-Dist (anthropic) Ignoring alien requirement: aiohttp; extra == 'aiohttp' Handling httpx-aiohttp>=0.1.9; extra == 'aiohttp' from hook generated metadata: Requires-Dist (anthropic) Ignoring alien requirement: httpx-aiohttp>=0.1.9; extra == 'aiohttp' Handling boto3>=1.28.57; extra == 'bedrock' from hook generated metadata: Requires-Dist (anthropic) Requirement not satisfied: boto3>=1.28.57; extra == 'bedrock' Handling botocore>=1.31.57; extra == 'bedrock' from hook generated metadata: Requires-Dist (anthropic) Requirement not satisfied: botocore>=1.31.57; extra == 'bedrock' Handling google-auth[requests]<3,>=2; extra == 'vertex' from hook generated metadata: Requires-Dist (anthropic) Requirement not satisfied: google-auth[requests]<3,>=2; extra == 'vertex' + cat /builddir/build/BUILD/python-anthropic-0.77.0-build/python-anthropic-0.77.0-1.fc44.x86_64-pyproject-buildrequires + rm -rfv anthropic-0.77.0.dist-info/ removed 'anthropic-0.77.0.dist-info/METADATA' removed directory 'anthropic-0.77.0.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-anthropic-0.77.0-1.fc44.buildreqs.nosrc.rpm INFO: Going to install missing dynamic buildrequires Updating and loading repositories: Copr repository 100% | 116.6 KiB/s | 1.5 KiB | 00m00s fedora 100% | 146.8 KiB/s | 23.8 KiB | 00m00s Repositories loaded. Package "pyproject-rpm-macros-1.18.6-2.fc44.noarch" is already installed. Package "python3-devel-3.14.2-3.fc44.x86_64" is already installed. Package "python3-dirty-equals-0.11-2.fc44.noarch" is already installed. Package "python3-inline-snapshot-0.31.1-4.fc44.noarch" is already installed. Package "python3-pytest-8.4.2-2.fc44.noarch" is already installed. Package "python3-pytest-asyncio-1.1.0-3.fc44.noarch" is already installed. Package "python3-respx-0.22.0-6.fc44.noarch" is already installed. Package "python3-hatch-fancy-pypi-readme-25.1.0-6.fc44.noarch" is already installed. Package "python3-packaging-25.0-8.fc44.noarch" is already installed. Package "python3-pip-25.3-2.fc44.noarch" is already installed. Package "tomcli-0.10.1-4.fc44.noarch" is already installed. Package Arch Version Repository Size Installing: python3-boto3 noarch 0:1.42.39-1.fc44 fedora 2.4 MiB python3-botocore noarch 0:1.42.39-1.fc44 fedora 108.2 MiB python3-distro noarch 0:1.9.0-11.fc44 fedora 210.2 KiB python3-docstring-parser noarch 0:0.17.0-4.fc44 fedora 480.5 KiB python3-google-auth noarch 1:2.47.0-1.fc44 fedora 1.6 MiB python3-google-auth+requests noarch 1:2.47.0-1.fc44 fedora 0.0 B python3-jiter x86_64 0:0.12.0-2.fc44 fedora 659.2 KiB python3-pydantic noarch 0:2.12.5-3.fc44 fedora 5.1 MiB python3-sniffio noarch 0:1.3.1-9.fc44 fedora 35.3 KiB python3-typing-extensions noarch 0:4.15.0-3.fc44 fedora 538.4 KiB Installing dependencies: python3-annotated-types noarch 0:0.7.0-9.fc44 fedora 85.1 KiB python3-charset-normalizer noarch 0:3.4.4-2.fc44 fedora 356.2 KiB python3-dateutil noarch 1:2.9.0.post0-7.fc44 fedora 878.0 KiB python3-jmespath noarch 0:1.0.1-14.fc44 fedora 150.8 KiB python3-pyasn1 noarch 0:0.6.2-1.fc44 fedora 884.2 KiB python3-pyasn1-modules noarch 0:0.6.2-1.fc44 fedora 1.7 MiB python3-pydantic-core x86_64 0:2.41.5-2.fc44 fedora 5.4 MiB python3-requests noarch 0:2.32.5-3.fc44 fedora 476.9 KiB python3-rsa noarch 0:4.9-13.fc44 fedora 252.4 KiB python3-s3transfer noarch 0:0.16.0-2.fc44 fedora 653.5 KiB python3-setuptools noarch 0:80.10.2-1.fc44 fedora 7.5 MiB python3-six noarch 0:1.17.0-8.fc44 fedora 118.0 KiB python3-typing-inspection noarch 0:0.4.2-3.fc44 fedora 91.9 KiB python3-urllib3 noarch 0:2.6.3-2.fc44 fedora 1.1 MiB Transaction Summary: Installing: 24 packages Total size of inbound packages is 16 MiB. Need to download 16 MiB. After this operation, 139 MiB extra will be used (install 139 MiB, remove 0 B). [ 1/24] python3-distro-0:1.9.0-11.fc44. 100% | 319.0 KiB/s | 47.2 KiB | 00m00s [ 2/24] python3-docstring-parser-0:0.17 100% | 623.2 KiB/s | 99.7 KiB | 00m00s [ 3/24] python3-google-auth+requests-1: 100% | 313.9 KiB/s | 11.0 KiB | 00m00s [ 4/24] python3-google-auth-1:2.47.0-1. 100% | 1.6 MiB/s | 366.6 KiB | 00m00s [ 5/24] python3-jiter-0:0.12.0-2.fc44.x 100% | 2.8 MiB/s | 282.0 KiB | 00m00s [ 6/24] python3-typing-extensions-0:4.1 100% | 2.8 MiB/s | 112.4 KiB | 00m00s [ 7/24] python3-boto3-0:1.42.39-1.fc44. 100% | 6.9 MiB/s | 471.7 KiB | 00m00s [ 8/24] python3-pydantic-0:2.12.5-3.fc4 100% | 6.4 MiB/s | 1.0 MiB | 00m00s [ 9/24] python3-sniffio-0:1.3.1-9.fc44. 100% | 560.3 KiB/s | 27.5 KiB | 00m00s [10/24] python3-pyasn1-modules-0:0.6.2- 100% | 7.4 MiB/s | 378.5 KiB | 00m00s [11/24] python3-rsa-0:4.9-13.fc44.noarc 100% | 2.3 MiB/s | 83.4 KiB | 00m00s [12/24] python3-botocore-0:1.42.39-1.fc 100% | 48.5 MiB/s | 8.4 MiB | 00m00s [13/24] python3-requests-0:2.32.5-3.fc4 100% | 3.4 MiB/s | 160.1 KiB | 00m00s [14/24] python3-annotated-types-0:0.7.0 100% | 540.7 KiB/s | 31.4 KiB | 00m00s [15/24] python3-typing-inspection-0:0.4 100% | 599.9 KiB/s | 33.0 KiB | 00m00s [16/24] python3-jmespath-0:1.0.1-14.fc4 100% | 1.7 MiB/s | 59.4 KiB | 00m00s [17/24] python3-pydantic-core-0:2.41.5- 100% | 20.3 MiB/s | 1.8 MiB | 00m00s [18/24] python3-s3transfer-0:0.16.0-2.f 100% | 4.5 MiB/s | 166.6 KiB | 00m00s [19/24] python3-dateutil-1:2.9.0.post0- 100% | 7.8 MiB/s | 344.3 KiB | 00m00s [20/24] python3-urllib3-0:2.6.3-2.fc44. 100% | 10.5 MiB/s | 301.9 KiB | 00m00s [21/24] python3-pyasn1-0:0.6.2-1.fc44.n 100% | 5.1 MiB/s | 199.9 KiB | 00m00s [22/24] python3-charset-normalizer-0:3. 100% | 4.4 MiB/s | 117.3 KiB | 00m00s [23/24] python3-six-0:1.17.0-8.fc44.noa 100% | 1.7 MiB/s | 42.0 KiB | 00m00s [24/24] python3-setuptools-0:80.10.2-1. 100% | 24.0 MiB/s | 1.8 MiB | 00m00s -------------------------------------------------------------------------------- [24/24] Total 100% | 26.1 MiB/s | 16.2 MiB | 00m01s Running transaction [ 1/26] Verify package files 100% | 400.0 B/s | 24.0 B | 00m00s [ 2/26] Prepare transaction 100% | 571.0 B/s | 24.0 B | 00m00s [ 3/26] Installing python3-typing-exten 100% | 264.0 MiB/s | 540.7 KiB | 00m00s [ 4/26] Installing python3-pyasn1-0:0.6 100% | 177.1 MiB/s | 906.9 KiB | 00m00s [ 5/26] Installing python3-urllib3-0:2. 100% | 227.5 MiB/s | 1.1 MiB | 00m00s [ 6/26] Installing python3-jmespath-0:1 100% | 10.2 MiB/s | 157.2 KiB | 00m00s [ 7/26] Installing python3-pyasn1-modul 100% | 198.2 MiB/s | 1.8 MiB | 00m00s [ 8/26] Installing python3-pydantic-cor 100% | 337.9 MiB/s | 5.4 MiB | 00m00s [ 9/26] Installing python3-typing-inspe 100% | 93.8 MiB/s | 96.0 KiB | 00m00s [10/26] Installing python3-six-0:1.17.0 100% | 117.5 MiB/s | 120.3 KiB | 00m00s [11/26] Installing python3-dateutil-1:2 100% | 87.1 MiB/s | 891.5 KiB | 00m00s [12/26] Installing python3-botocore-0:1 100% | 464.6 MiB/s | 108.7 MiB | 00m00s [13/26] Installing python3-s3transfer-0 100% | 216.4 MiB/s | 664.9 KiB | 00m00s [14/26] Installing python3-charset-norm 100% | 23.9 MiB/s | 366.4 KiB | 00m00s [15/26] Installing python3-requests-0:2 100% | 119.4 MiB/s | 488.9 KiB | 00m00s [16/26] Installing python3-setuptools-0 100% | 239.1 MiB/s | 7.7 MiB | 00m00s [17/26] Installing python3-rsa-0:4.9-13 100% | 17.2 MiB/s | 263.8 KiB | 00m00s [18/26] Installing python3-google-auth- 100% | 229.0 MiB/s | 1.6 MiB | 00m00s [19/26] Installing python3-annotated-ty 100% | 43.1 MiB/s | 88.2 KiB | 00m00s [20/26] Installing python3-pydantic-0:2 100% | 342.2 MiB/s | 5.1 MiB | 00m00s [21/26] Installing python3-google-auth+ 100% | 121.1 KiB/s | 124.0 B | 00m00s [22/26] Installing python3-boto3-0:1.42 100% | 268.0 MiB/s | 2.4 MiB | 00m00s [23/26] Installing python3-sniffio-0:1. 100% | 40.0 MiB/s | 40.9 KiB | 00m00s [24/26] Installing python3-jiter-0:0.12 100% | 215.6 MiB/s | 662.3 KiB | 00m00s [25/26] Installing python3-docstring-pa 100% | 160.7 MiB/s | 493.7 KiB | 00m00s [26/26] Installing python3-distro-0:1.9 100% | 6.4 MiB/s | 214.9 KiB | 00m00s Complete! Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1769990400 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.9Qj88c + umask 022 + cd /builddir/build/BUILD/python-anthropic-0.77.0-build + cd anthropic-0.77.0 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/python-anthropic-0.77.0-build/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-anthropic-0.77.0-build/.pyproject-builddir + RPM_TOXENV=py314 + FEDORA=44 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-anthropic-0.77.0-build/pyproject-wheeldir --output /builddir/build/BUILD/python-anthropic-0.77.0-build/python-anthropic-0.77.0-1.fc44.x86_64-pyproject-buildrequires -x bedrock,vertex Handling hatchling>=1.26.3,<=1.30.0 from build-system.requires Requirement satisfied: hatchling>=1.26.3,<=1.30.0 (installed: hatchling 1.28.0) Handling hatch-fancy-pypi-readme from build-system.requires Requirement satisfied: hatch-fancy-pypi-readme (installed: hatch-fancy-pypi-readme 25.1.0) Handling anyio<5,>=3.5.0 from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: anyio<5,>=3.5.0 (installed: anyio 4.12.1) Handling distro<2,>=1.7.0 from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: distro<2,>=1.7.0 (installed: distro 1.9.0) Handling docstring-parser<1,>=0.15 from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: docstring-parser<1,>=0.15 (installed: docstring-parser 0.17.0) Handling httpx<1,>=0.25.0 from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: httpx<1,>=0.25.0 (installed: httpx 0.28.1) Handling jiter<1,>=0.4.0 from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: jiter<1,>=0.4.0 (installed: jiter 0.12.0) Handling pydantic<3,>=1.9.0 from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: pydantic<3,>=1.9.0 (installed: pydantic 2.12.5) Handling sniffio from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: sniffio (installed: sniffio 1.3.1) Handling typing-extensions<5,>=4.10 from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: typing-extensions<5,>=4.10 (installed: typing-extensions 4.15.0) Handling aiohttp; extra == 'aiohttp' from hook generated metadata: Requires-Dist (anthropic) Ignoring alien requirement: aiohttp; extra == 'aiohttp' Handling httpx-aiohttp>=0.1.9; extra == 'aiohttp' from hook generated metadata: Requires-Dist (anthropic) Ignoring alien requirement: httpx-aiohttp>=0.1.9; extra == 'aiohttp' Handling boto3>=1.28.57; extra == 'bedrock' from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: boto3>=1.28.57; extra == 'bedrock' (installed: boto3 1.42.39) Handling botocore>=1.31.57; extra == 'bedrock' from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: botocore>=1.31.57; extra == 'bedrock' (installed: botocore 1.42.39) Handling google-auth[requests]<3,>=2; extra == 'vertex' from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: google-auth[requests]<3,>=2; extra == 'vertex' (installed: google-auth 2.47.0) (extras are currently not checked) + cat /builddir/build/BUILD/python-anthropic-0.77.0-build/python-anthropic-0.77.0-1.fc44.x86_64-pyproject-buildrequires + rm -rfv anthropic-0.77.0.dist-info/ removed 'anthropic-0.77.0.dist-info/METADATA' removed directory 'anthropic-0.77.0.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-anthropic-0.77.0-1.fc44.buildreqs.nosrc.rpm INFO: Going to install missing dynamic buildrequires Updating and loading repositories: Copr repository 100% | 32.2 KiB/s | 1.5 KiB | 00m00s fedora 100% | 212.4 KiB/s | 23.8 KiB | 00m00s Repositories loaded. Nothing to do. Package "pyproject-rpm-macros-1.18.6-2.fc44.noarch" is already installed. Package "python3-devel-3.14.2-3.fc44.x86_64" is already installed. Package "python3-dirty-equals-0.11-2.fc44.noarch" is already installed. Package "python3-inline-snapshot-0.31.1-4.fc44.noarch" is already installed. Package "python3-pytest-8.4.2-2.fc44.noarch" is already installed. Package "python3-pytest-asyncio-1.1.0-3.fc44.noarch" is already installed. Package "python3-respx-0.22.0-6.fc44.noarch" is already installed. Package "python3-boto3-1.42.39-1.fc44.noarch" is already installed. Package "python3-botocore-1.42.39-1.fc44.noarch" is already installed. Package "python3-hatch-fancy-pypi-readme-25.1.0-6.fc44.noarch" is already installed. Package "python3-packaging-25.0-8.fc44.noarch" is already installed. Package "python3-pip-25.3-2.fc44.noarch" is already installed. Package "python3-sniffio-1.3.1-9.fc44.noarch" is already installed. Package "tomcli-0.10.1-4.fc44.noarch" is already installed. Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1769990400 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.WZqQGj + umask 022 + cd /builddir/build/BUILD/python-anthropic-0.77.0-build + cd anthropic-0.77.0 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/python-anthropic-0.77.0-build/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-anthropic-0.77.0-build/.pyproject-builddir + RPM_TOXENV=py314 + FEDORA=44 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-anthropic-0.77.0-build/pyproject-wheeldir --output /builddir/build/BUILD/python-anthropic-0.77.0-build/python-anthropic-0.77.0-1.fc44.x86_64-pyproject-buildrequires -x bedrock,vertex Handling hatchling>=1.26.3,<=1.30.0 from build-system.requires Requirement satisfied: hatchling>=1.26.3,<=1.30.0 (installed: hatchling 1.28.0) Handling hatch-fancy-pypi-readme from build-system.requires Requirement satisfied: hatch-fancy-pypi-readme (installed: hatch-fancy-pypi-readme 25.1.0) Handling anyio<5,>=3.5.0 from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: anyio<5,>=3.5.0 (installed: anyio 4.12.1) Handling distro<2,>=1.7.0 from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: distro<2,>=1.7.0 (installed: distro 1.9.0) Handling docstring-parser<1,>=0.15 from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: docstring-parser<1,>=0.15 (installed: docstring-parser 0.17.0) Handling httpx<1,>=0.25.0 from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: httpx<1,>=0.25.0 (installed: httpx 0.28.1) Handling jiter<1,>=0.4.0 from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: jiter<1,>=0.4.0 (installed: jiter 0.12.0) Handling pydantic<3,>=1.9.0 from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: pydantic<3,>=1.9.0 (installed: pydantic 2.12.5) Handling sniffio from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: sniffio (installed: sniffio 1.3.1) Handling typing-extensions<5,>=4.10 from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: typing-extensions<5,>=4.10 (installed: typing-extensions 4.15.0) Handling aiohttp; extra == 'aiohttp' from hook generated metadata: Requires-Dist (anthropic) Ignoring alien requirement: aiohttp; extra == 'aiohttp' Handling httpx-aiohttp>=0.1.9; extra == 'aiohttp' from hook generated metadata: Requires-Dist (anthropic) Ignoring alien requirement: httpx-aiohttp>=0.1.9; extra == 'aiohttp' Handling boto3>=1.28.57; extra == 'bedrock' from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: boto3>=1.28.57; extra == 'bedrock' (installed: boto3 1.42.39) Handling botocore>=1.31.57; extra == 'bedrock' from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: botocore>=1.31.57; extra == 'bedrock' (installed: botocore 1.42.39) Handling google-auth[requests]<3,>=2; extra == 'vertex' from hook generated metadata: Requires-Dist (anthropic) Requirement satisfied: google-auth[requests]<3,>=2; extra == 'vertex' (installed: google-auth 2.47.0) (extras are currently not checked) + cat /builddir/build/BUILD/python-anthropic-0.77.0-build/python-anthropic-0.77.0-1.fc44.x86_64-pyproject-buildrequires + rm -rfv anthropic-0.77.0.dist-info/ removed 'anthropic-0.77.0.dist-info/METADATA' removed directory 'anthropic-0.77.0.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.If3hd5 + umask 022 + cd /builddir/build/BUILD/python-anthropic-0.77.0-build + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd anthropic-0.77.0 + mkdir -p /builddir/build/BUILD/python-anthropic-0.77.0-build/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-anthropic-0.77.0-build/.pyproject-builddir + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_wheel.py /builddir/build/BUILD/python-anthropic-0.77.0-build/pyproject-wheeldir Processing /builddir/build/BUILD/python-anthropic-0.77.0-build/anthropic-0.77.0 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: anthropic Building wheel for anthropic (pyproject.toml): started Running command Building wheel for anthropic (pyproject.toml) Building wheel for anthropic (pyproject.toml): finished with status 'done' Created wheel for anthropic: filename=anthropic-0.77.0-py3-none-any.whl size=396155 sha256=a5ccd736a93a20db63b0dcb4bcf0e653569681d39b14670bf165f81e6b130a57 Stored in directory: /builddir/.cache/pip/wheels/8f/53/b0/cbd43664932d9d12b88676e258035a0504d0a66e1d75a84a4a Successfully built anthropic + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.2YeCRJ + umask 022 + cd /builddir/build/BUILD/python-anthropic-0.77.0-build + '[' /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT '!=' / ']' + rm -rf /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT ++ dirname /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT + mkdir -p /builddir/build/BUILD/python-anthropic-0.77.0-build + mkdir /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd anthropic-0.77.0 ++ ls /builddir/build/BUILD/python-anthropic-0.77.0-build/pyproject-wheeldir/anthropic-0.77.0-py3-none-any.whl ++ xargs basename --multiple ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' + specifier=anthropic==0.77.0 + '[' -z anthropic==0.77.0 ']' + TMPDIR=/builddir/build/BUILD/python-anthropic-0.77.0-build/.pyproject-builddir + /usr/bin/python3 -m pip install --root /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT --prefix /usr --no-deps --disable-pip-version-check --progress-bar off --verbose --ignore-installed --no-warn-script-location --no-index --no-cache-dir --find-links /builddir/build/BUILD/python-anthropic-0.77.0-build/pyproject-wheeldir anthropic==0.77.0 Using pip 25.3 from /usr/lib/python3.14/site-packages/pip (python 3.14) Looking in links: /builddir/build/BUILD/python-anthropic-0.77.0-build/pyproject-wheeldir Processing /builddir/build/BUILD/python-anthropic-0.77.0-build/pyproject-wheeldir/anthropic-0.77.0-py3-none-any.whl Installing collected packages: anthropic Successfully installed anthropic-0.77.0 + '[' -d /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/bin ']' + rm -f /builddir/build/BUILD/python-anthropic-0.77.0-build/python-anthropic-0.77.0-1.fc44.x86_64-pyproject-ghost-distinfo + site_dirs=() + '[' -d /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages ']' + site_dirs+=("/usr/lib/python3.14/site-packages") + '[' /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib64/python3.14/site-packages '!=' /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages ']' + '[' -d /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib64/python3.14/site-packages ']' + for site_dir in ${site_dirs[@]} + for distinfo in /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT$site_dir/*.dist-info + echo '%ghost %dir /usr/lib/python3.14/site-packages/anthropic-0.77.0.dist-info' + sed -i s/pip/rpm/ /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic-0.77.0.dist-info/INSTALLER + PYTHONPATH=/usr/lib/rpm/redhat + /usr/bin/python3 -B /usr/lib/rpm/redhat/pyproject_preprocess_record.py --buildroot /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT --record /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic-0.77.0.dist-info/RECORD --output /builddir/build/BUILD/python-anthropic-0.77.0-build/python-anthropic-0.77.0-1.fc44.x86_64-pyproject-record + rm -fv /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic-0.77.0.dist-info/RECORD removed '/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic-0.77.0.dist-info/RECORD' + rm -fv /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic-0.77.0.dist-info/REQUESTED removed '/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic-0.77.0.dist-info/REQUESTED' ++ wc -l /builddir/build/BUILD/python-anthropic-0.77.0-build/python-anthropic-0.77.0-1.fc44.x86_64-pyproject-ghost-distinfo ++ cut -f1 '-d ' + lines=1 + '[' 1 -ne 1 ']' + RPM_FILES_ESCAPE=4.19 + /usr/bin/python3 /usr/lib/rpm/redhat/pyproject_save_files.py --output-files /builddir/build/BUILD/python-anthropic-0.77.0-build/python-anthropic-0.77.0-1.fc44.x86_64-pyproject-files --output-modules /builddir/build/BUILD/python-anthropic-0.77.0-build/python-anthropic-0.77.0-1.fc44.x86_64-pyproject-modules --buildroot /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT --sitelib /usr/lib/python3.14/site-packages --sitearch /usr/lib64/python3.14/site-packages --python-version 3.14 --pyproject-record /builddir/build/BUILD/python-anthropic-0.77.0-build/python-anthropic-0.77.0-1.fc44.x86_64-pyproject-record --prefix /usr anthropic + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + COMPRESS='gzip -9 -n' + COMPRESS_EXT=.gz + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-python-rpm-in-distinfo + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j4 Bytecompiling .py files below /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14 using python3.14 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/bin/add-det --brp -j4 /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/__pycache__/_version.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/__pycache__/pagination.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/__pycache__/_compat.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/__pycache__/_types.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/__pycache__/_resource.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/__pycache__/_qs.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/__pycache__/_streaming.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/__pycache__/_client.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/__pycache__/_models.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/__pycache__/_response.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/__pycache__/_files.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/__pycache__/_legacy_response.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/__pycache__/_constants.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/__pycache__/_exceptions.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/web_search_tool_result_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/web_search_tool_result_block_param_content_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/web_search_tool_result_block_content.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/web_search_tool_result_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/web_search_result_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/web_search_tool_result_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/web_search_result_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/url_image_source_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/tool_text_editor_20250728_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/web_search_tool_request_error_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/tool_text_editor_20250429_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/tool_use_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/usage.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/web_search_tool_20250305_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/tool_text_editor_20250124_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/tool_use_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/tool_result_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/tool_union_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/url_pdf_source_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/tool_choice_auto_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/tool_choice_tool_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/thinking_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/thinking_config_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/tool_choice_any_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/thinking_config_enabled_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/text_delta.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/tool_choice_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/tool_bash_20250124_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/text_citation_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/tool_choice_none_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/thinking_config_disabled_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/thinking_delta.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/tool_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/text_citation.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/thinking_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/text_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/text_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/stop_reason.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/signature_delta.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/server_tool_use_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/redacted_thinking_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/server_tool_use_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/raw_message_start_event.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/redacted_thinking_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/raw_content_block_delta_event.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/server_tool_usage.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/raw_message_delta_event.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/raw_message_stream_event.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/raw_content_block_delta.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/search_result_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/raw_message_stop_event.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/raw_content_block_stop_event.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/plain_text_source_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/output_config_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/__pycache__/_base_client.cpython-314.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/raw_content_block_start_event.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/model.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/parsed_message.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/model_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/model_list_params.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/metadata_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/message_delta_event.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/model_info.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/message_start_event.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/message_stop_event.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/message_count_tokens_tool_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/message_create_params.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/message.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/message_tokens_count.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/message_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/json_output_format_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/message_count_tokens_params.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/message_stream_event.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/content_block_source_content_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/input_json_delta.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/message_delta_usage.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/document_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/completion_create_params.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/content_block_stop_event.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/content_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/content_block_delta_event.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/image_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/completion.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/citations_delta.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/content_block_start_event.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/content_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/citations_web_search_result_location.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/content_block_source_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/citation_page_location_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/citation_web_search_result_location_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/citations_search_result_location.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/citation_search_result_location_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/citation_char_location_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/citation_page_location.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/citation_char_location.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/beta_rate_limit_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/citation_content_block_location_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/citations_config_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/beta_invalid_request_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/cache_creation.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/beta_permission_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/citation_content_block_location.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/beta_gateway_timeout_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/cache_control_ephemeral_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/beta_overloaded_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/beta_error_response.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/__pycache__/_base_client.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/beta_not_found_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/beta_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/beta_authentication_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/beta_api_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/base64_pdf_source_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/base64_image_source_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/anthropic_beta_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/shared/__pycache__/rate_limit_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/shared/__pycache__/invalid_request_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/shared/__pycache__/billing_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/shared/__pycache__/gateway_timeout_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/beta_billing_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/shared/__pycache__/permission_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/shared/__pycache__/overloaded_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/shared/__pycache__/error_response.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/shared/__pycache__/not_found_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/shared/__pycache__/authentication_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/shared/__pycache__/error_object.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/shared/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/messages/__pycache__/message_batch_canceled_result.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/messages/__pycache__/message_batch_succeeded_result.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/shared/__pycache__/api_error_object.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/messages/__pycache__/message_batch_request_counts.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/messages/__pycache__/message_batch.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/messages/__pycache__/message_batch_result.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/messages/__pycache__/message_batch_expired_result.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/messages/__pycache__/message_batch_individual_response.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/messages/__pycache__/deleted_message_batch.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/messages/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/messages/__pycache__/batch_create_params.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/messages/__pycache__/batch_list_params.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/skill_delete_response.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/skill_list_params.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/messages/__pycache__/message_batch_errored_result.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/skill_retrieve_response.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/skill_create_response.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/skill_list_response.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/skill_create_params.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/model_list_params.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/file_upload_params.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/parsed_beta_message.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/file_metadata.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/message_create_params.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/file_list_params.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_web_search_tool_result_error_code.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_web_search_tool_result_block_content.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/deleted_file.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_web_search_tool_result_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/message_count_tokens_params.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_web_search_tool_result_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_web_search_result_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_web_search_tool_result_block_param_content_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_web_fetch_tool_result_error_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_web_search_tool_request_error_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_web_search_result_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_web_search_tool_result_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_web_fetch_tool_result_error_code.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_web_search_tool_20250305_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_web_fetch_tool_result_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_web_fetch_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_web_fetch_tool_result_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_web_fetch_tool_result_error_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_web_fetch_tool_20250910_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_web_fetch_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_text_editor_20250124_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_url_image_source_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_union_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_use_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_text_editor_20241022_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_usage.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_uses_trigger_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_text_editor_20250728_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_uses_keep_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_url_pdf_source_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_text_editor_20250429_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_search_tool_result_error_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_use_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_search_tool_search_result_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_search_tool_regex_20251119_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_search_tool_result_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_reference_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_computer_use_20241022_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_search_tool_bm25_20251119_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_search_tool_result_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_search_tool_search_result_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_choice_tool_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_result_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_computer_use_20251124_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_choice_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_reference_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_computer_use_20250124_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_choice_auto_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_choice_none_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_thinking_turns_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_search_tool_result_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_thinking_config_disabled_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_text_editor_code_execution_view_result_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_bash_20250124_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_thinking_delta.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_thinking_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_text_editor_code_execution_tool_result_error_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_choice_any_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_thinking_config_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_tool_bash_20241022_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_text_editor_code_execution_tool_result_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_thinking_config_enabled_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_text_editor_code_execution_view_result_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_thinking_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_text_editor_code_execution_tool_result_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_text_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_skill.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_text_editor_code_execution_tool_result_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_text_editor_code_execution_create_result_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_text_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_signature_delta.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_text_editor_code_execution_str_replace_result_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_server_tool_use_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_text_citation_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_stop_reason.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_text_editor_code_execution_create_result_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_text_citation.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_text_editor_code_execution_str_replace_result_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_skill_params.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_server_tool_usage.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_server_tool_use_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_request_mcp_tool_result_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_redacted_thinking_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_raw_message_start_event.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_server_tool_caller_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_text_delta.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_request_mcp_server_url_definition_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_raw_message_delta_event.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_redacted_thinking_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_server_tool_caller.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_request_mcp_server_tool_configuration_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_raw_message_stream_event.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_search_result_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_request_document_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_raw_content_block_start_event.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_message_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_raw_content_block_delta_event.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_raw_message_stop_event.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_output_config_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_message_delta_usage.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_raw_content_block_delta.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_model_info.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_metadata_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_plain_text_source_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_message.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_raw_content_block_stop_event.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_mcp_tool_use_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_memory_tool_20250818_view_command.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_memory_tool_20250818_delete_command.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_plain_text_source.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_memory_tool_20250818_str_replace_command.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_message_tokens_count.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_memory_tool_20250818_create_command.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_mcp_tool_use_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_memory_tool_20250818_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_memory_tool_20250818_rename_command.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_mcp_tool_result_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_memory_tool_20250818_command.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_mcp_tool_default_config_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_mcp_toolset_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_mcp_tool_config_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_input_json_delta.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_memory_tool_20250818_insert_command.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_input_tokens_trigger_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_image_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_json_output_format_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_direct_caller_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_file_image_source_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_document_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_file_document_source_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_count_tokens_context_management_response.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_input_tokens_clear_at_least_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_content_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_context_management_response.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_container_params.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_context_management_config_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_direct_caller.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_content_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_content_block_source_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_container.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_container_upload_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_content_block_source_content_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_code_execution_tool_result_error_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_container_upload_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_code_execution_tool_result_error_code.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_code_execution_tool_result_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_code_execution_tool_result_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_code_execution_tool_20250825_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_code_execution_result_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_code_execution_tool_result_block_param_content_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_code_execution_output_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_code_execution_tool_20250522_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_code_execution_tool_result_block_content.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_code_execution_result_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_clear_tool_uses_20250919_edit_response.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_code_execution_output_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_clear_tool_uses_20250919_edit_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_citations_delta.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_citations_config_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_citation_web_search_result_location_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_clear_thinking_20251015_edit_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_citation_search_result_location_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_clear_thinking_20251015_edit_response.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_citations_web_search_result_location.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_citation_content_block_location.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_citation_config.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_citation_page_location_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_citation_char_location_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_citation_search_result_location.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_citation_page_location.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_citation_char_location.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_cache_creation.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_bash_code_execution_tool_result_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_code_execution_tool_result_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_cache_control_ephemeral_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_citation_content_block_location_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_bash_code_execution_tool_result_error_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_bash_code_execution_tool_result_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_bash_code_execution_tool_result_error.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_bash_code_execution_result_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_bash_code_execution_result_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_bash_code_execution_output_block.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_bash_code_execution_output_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_base64_pdf_block_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_base64_image_source_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_all_thinking_turns_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_base64_pdf_source_param.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/beta_base64_pdf_source.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/skills/__pycache__/version_list_response.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/skills/__pycache__/version_list_params.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/skills/__pycache__/version_create_params.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/skills/__pycache__/version_retrieve_response.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/skills/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/skills/__pycache__/version_delete_response.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/skills/__pycache__/version_create_response.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/messages/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/messages/__pycache__/batch_create_params.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/messages/__pycache__/beta_message_batch_canceled_result.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/messages/__pycache__/beta_message_batch_request_counts.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/messages/__pycache__/beta_message_batch_succeeded_result.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/messages/__pycache__/beta_message_batch_result.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/messages/__pycache__/beta_message_batch_individual_response.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/messages/__pycache__/beta_message_batch.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/messages/__pycache__/beta_message_batch_expired_result.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/messages/__pycache__/batch_list_params.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/messages/__pycache__/beta_message_batch_errored_result.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/types/beta/messages/__pycache__/beta_deleted_message_batch.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/__pycache__/models.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/__pycache__/completions.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/__pycache__/models.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/__pycache__/beta.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/__pycache__/files.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/__pycache__/batches.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/__pycache__/skills.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/__pycache__/versions.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/__pycache__/messages.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/__pycache__/foundry.cpython-314.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/__pycache__/_files.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/__pycache__/batches.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/vertex/__pycache__/_auth.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/vertex/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/__pycache__/foundry.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/vertex/__pycache__/_beta.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/vertex/__pycache__/_beta_messages.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/vertex/__pycache__/_client.cpython-314.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/vertex/__pycache__/_client.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/tools/__pycache__/_beta_functions.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/tools/__pycache__/_beta_compaction_control.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/__pycache__/messages.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/tools/__pycache__/_beta_builtin_memory_tool.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/tools/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/tools/__pycache__/_beta_runner.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/streaming/__pycache__/_types.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/streaming/__pycache__/_beta_types.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/tools/__pycache__/_beta_runner.cpython-314.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/streaming/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/streaming/__pycache__/_messages.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/bedrock/__pycache__/_stream.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/streaming/__pycache__/_messages.cpython-314.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/streaming/__pycache__/_beta_messages.cpython-314.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/bedrock/__pycache__/_auth.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/streaming/__pycache__/_beta_messages.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/bedrock/__pycache__/_stream_decoder.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/bedrock/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/_parse/__pycache__/_transform.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/bedrock/__pycache__/_beta.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/bedrock/__pycache__/_client.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/_extras/__pycache__/_google_auth.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/_extras/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/_parse/__pycache__/_response.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/_extras/__pycache__/_common.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/__pycache__/__init__.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/lib/bedrock/__pycache__/_beta_messages.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/__pycache__/_typing.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/__pycache__/_sync.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/__pycache__/_streams.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/__pycache__/_resources_proxy.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/__pycache__/_reflection.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/__pycache__/_proxy.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/__pycache__/_logs.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/__pycache__/_json.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/__pycache__/_utils.cpython-314.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/__pycache__/_utils.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/__pycache__/_httpx.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/__pycache__/_datetime_parse.cpython-314.opt-1.pyc: replacing with normalized version /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/__pycache__/_compat.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/__pycache__/_datetime_parse.cpython-314.pyc: replacing with normalized version /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/__pycache__/_transform.cpython-314.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_decoders/__pycache__/jsonl.cpython-314.opt-1.pyc: rewriting with normalized contents Scanned 49 directories and 1315 files, processed 444 inodes, 444 modified (16 replaced + 428 rewritten), 0 unsupported format, 0 errors + /usr/bin/linkdupes --brp /builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr Scanned 48 directories and 1315 files, considered 1315 files, read 432 files, linked 1 files, 0 errors sum of sizes of linked files: 3323 bytes Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.2xhn8B + umask 022 + cd /builddir/build/BUILD/python-anthropic-0.77.0-build + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd anthropic-0.77.0 + '[' '!' -f /builddir/build/BUILD/python-anthropic-0.77.0-build/python-anthropic-0.77.0-1.fc44.x86_64-pyproject-modules ']' + PATH=/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin + PYTHONPATH=/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib64/python3.14/site-packages:/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages + _PYTHONSITE=/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib64/python3.14/site-packages:/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages + PYTHONDONTWRITEBYTECODE=1 + /usr/bin/python3 -sP /usr/lib/rpm/redhat/import_all_modules.py -f /builddir/build/BUILD/python-anthropic-0.77.0-build/python-anthropic-0.77.0-1.fc44.x86_64-pyproject-modules Check import: anthropic Check import: anthropic.lib Check import: anthropic.lib.bedrock Check import: anthropic.lib.foundry Check import: anthropic.lib.streaming Check import: anthropic.lib.tools Check import: anthropic.lib.vertex Check import: anthropic.pagination Check import: anthropic.resources Check import: anthropic.resources.beta Check import: anthropic.resources.beta.beta Check import: anthropic.resources.beta.files Check import: anthropic.resources.beta.messages Check import: anthropic.resources.beta.messages.batches Check import: anthropic.resources.beta.messages.messages Check import: anthropic.resources.beta.models Check import: anthropic.resources.beta.skills Check import: anthropic.resources.beta.skills.skills Check import: anthropic.resources.beta.skills.versions Check import: anthropic.resources.completions Check import: anthropic.resources.messages Check import: anthropic.resources.messages.batches Check import: anthropic.resources.messages.messages Check import: anthropic.resources.models Check import: anthropic.types Check import: anthropic.types.anthropic_beta_param Check import: anthropic.types.base64_image_source_param Check import: anthropic.types.base64_pdf_source_param Check import: anthropic.types.beta Check import: anthropic.types.beta.beta_all_thinking_turns_param Check import: anthropic.types.beta.beta_base64_image_source_param Check import: anthropic.types.beta.beta_base64_pdf_block_param Check import: anthropic.types.beta.beta_base64_pdf_source Check import: anthropic.types.beta.beta_base64_pdf_source_param Check import: anthropic.types.beta.beta_bash_code_execution_output_block Check import: anthropic.types.beta.beta_bash_code_execution_output_block_param Check import: anthropic.types.beta.beta_bash_code_execution_result_block Check import: anthropic.types.beta.beta_bash_code_execution_result_block_param Check import: anthropic.types.beta.beta_bash_code_execution_tool_result_block Check import: anthropic.types.beta.beta_bash_code_execution_tool_result_block_param Check import: anthropic.types.beta.beta_bash_code_execution_tool_result_error Check import: anthropic.types.beta.beta_bash_code_execution_tool_result_error_param Check import: anthropic.types.beta.beta_cache_control_ephemeral_param Check import: anthropic.types.beta.beta_cache_creation Check import: anthropic.types.beta.beta_citation_char_location Check import: anthropic.types.beta.beta_citation_char_location_param Check import: anthropic.types.beta.beta_citation_config Check import: anthropic.types.beta.beta_citation_content_block_location Check import: anthropic.types.beta.beta_citation_content_block_location_param Check import: anthropic.types.beta.beta_citation_page_location Check import: anthropic.types.beta.beta_citation_page_location_param Check import: anthropic.types.beta.beta_citation_search_result_location Check import: anthropic.types.beta.beta_citation_search_result_location_param Check import: anthropic.types.beta.beta_citation_web_search_result_location_param Check import: anthropic.types.beta.beta_citations_config_param Check import: anthropic.types.beta.beta_citations_delta Check import: anthropic.types.beta.beta_citations_web_search_result_location Check import: anthropic.types.beta.beta_clear_thinking_20251015_edit_param Check import: anthropic.types.beta.beta_clear_thinking_20251015_edit_response Check import: anthropic.types.beta.beta_clear_tool_uses_20250919_edit_param Check import: anthropic.types.beta.beta_clear_tool_uses_20250919_edit_response Check import: anthropic.types.beta.beta_code_execution_output_block Check import: anthropic.types.beta.beta_code_execution_output_block_param Check import: anthropic.types.beta.beta_code_execution_result_block Check import: anthropic.types.beta.beta_code_execution_result_block_param Check import: anthropic.types.beta.beta_code_execution_tool_20250522_param Check import: anthropic.types.beta.beta_code_execution_tool_20250825_param Check import: anthropic.types.beta.beta_code_execution_tool_result_block Check import: anthropic.types.beta.beta_code_execution_tool_result_block_content Check import: anthropic.types.beta.beta_code_execution_tool_result_block_param Check import: anthropic.types.beta.beta_code_execution_tool_result_block_param_content_param Check import: anthropic.types.beta.beta_code_execution_tool_result_error Check import: anthropic.types.beta.beta_code_execution_tool_result_error_code Check import: anthropic.types.beta.beta_code_execution_tool_result_error_param Check import: anthropic.types.beta.beta_container Check import: anthropic.types.beta.beta_container_params Check import: anthropic.types.beta.beta_container_upload_block Check import: anthropic.types.beta.beta_container_upload_block_param Check import: anthropic.types.beta.beta_content_block Check import: anthropic.types.beta.beta_content_block_param Check import: anthropic.types.beta.beta_content_block_source_content_param Check import: anthropic.types.beta.beta_content_block_source_param Check import: anthropic.types.beta.beta_context_management_config_param Check import: anthropic.types.beta.beta_context_management_response Check import: anthropic.types.beta.beta_count_tokens_context_management_response Check import: anthropic.types.beta.beta_direct_caller Check import: anthropic.types.beta.beta_direct_caller_param Check import: anthropic.types.beta.beta_document_block Check import: anthropic.types.beta.beta_file_document_source_param Check import: anthropic.types.beta.beta_file_image_source_param Check import: anthropic.types.beta.beta_image_block_param Check import: anthropic.types.beta.beta_input_json_delta Check import: anthropic.types.beta.beta_input_tokens_clear_at_least_param Check import: anthropic.types.beta.beta_input_tokens_trigger_param Check import: anthropic.types.beta.beta_json_output_format_param Check import: anthropic.types.beta.beta_mcp_tool_config_param Check import: anthropic.types.beta.beta_mcp_tool_default_config_param Check import: anthropic.types.beta.beta_mcp_tool_result_block Check import: anthropic.types.beta.beta_mcp_tool_use_block Check import: anthropic.types.beta.beta_mcp_tool_use_block_param Check import: anthropic.types.beta.beta_mcp_toolset_param Check import: anthropic.types.beta.beta_memory_tool_20250818_command Check import: anthropic.types.beta.beta_memory_tool_20250818_create_command Check import: anthropic.types.beta.beta_memory_tool_20250818_delete_command Check import: anthropic.types.beta.beta_memory_tool_20250818_insert_command Check import: anthropic.types.beta.beta_memory_tool_20250818_param Check import: anthropic.types.beta.beta_memory_tool_20250818_rename_command Check import: anthropic.types.beta.beta_memory_tool_20250818_str_replace_command Check import: anthropic.types.beta.beta_memory_tool_20250818_view_command Check import: anthropic.types.beta.beta_message Check import: anthropic.types.beta.beta_message_delta_usage Check import: anthropic.types.beta.beta_message_param Check import: anthropic.types.beta.beta_message_tokens_count Check import: anthropic.types.beta.beta_metadata_param Check import: anthropic.types.beta.beta_model_info Check import: anthropic.types.beta.beta_output_config_param Check import: anthropic.types.beta.beta_plain_text_source Check import: anthropic.types.beta.beta_plain_text_source_param Check import: anthropic.types.beta.beta_raw_content_block_delta Check import: anthropic.types.beta.beta_raw_content_block_delta_event Check import: anthropic.types.beta.beta_raw_content_block_start_event Check import: anthropic.types.beta.beta_raw_content_block_stop_event Check import: anthropic.types.beta.beta_raw_message_delta_event Check import: anthropic.types.beta.beta_raw_message_start_event Check import: anthropic.types.beta.beta_raw_message_stop_event Check import: anthropic.types.beta.beta_raw_message_stream_event Check import: anthropic.types.beta.beta_redacted_thinking_block Check import: anthropic.types.beta.beta_redacted_thinking_block_param Check import: anthropic.types.beta.beta_request_document_block_param Check import: anthropic.types.beta.beta_request_mcp_server_tool_configuration_param Check import: anthropic.types.beta.beta_request_mcp_server_url_definition_param Check import: anthropic.types.beta.beta_request_mcp_tool_result_block_param Check import: anthropic.types.beta.beta_search_result_block_param Check import: anthropic.types.beta.beta_server_tool_caller Check import: anthropic.types.beta.beta_server_tool_caller_param Check import: anthropic.types.beta.beta_server_tool_usage Check import: anthropic.types.beta.beta_server_tool_use_block Check import: anthropic.types.beta.beta_server_tool_use_block_param Check import: anthropic.types.beta.beta_signature_delta Check import: anthropic.types.beta.beta_skill Check import: anthropic.types.beta.beta_skill_params Check import: anthropic.types.beta.beta_stop_reason Check import: anthropic.types.beta.beta_text_block Check import: anthropic.types.beta.beta_text_block_param Check import: anthropic.types.beta.beta_text_citation Check import: anthropic.types.beta.beta_text_citation_param Check import: anthropic.types.beta.beta_text_delta Check import: anthropic.types.beta.beta_text_editor_code_execution_create_result_block Check import: anthropic.types.beta.beta_text_editor_code_execution_create_result_block_param Check import: anthropic.types.beta.beta_text_editor_code_execution_str_replace_result_block Check import: anthropic.types.beta.beta_text_editor_code_execution_str_replace_result_block_param Check import: anthropic.types.beta.beta_text_editor_code_execution_tool_result_block Check import: anthropic.types.beta.beta_text_editor_code_execution_tool_result_block_param Check import: anthropic.types.beta.beta_text_editor_code_execution_tool_result_error Check import: anthropic.types.beta.beta_text_editor_code_execution_tool_result_error_param Check import: anthropic.types.beta.beta_text_editor_code_execution_view_result_block Check import: anthropic.types.beta.beta_text_editor_code_execution_view_result_block_param Check import: anthropic.types.beta.beta_thinking_block Check import: anthropic.types.beta.beta_thinking_block_param Check import: anthropic.types.beta.beta_thinking_config_disabled_param Check import: anthropic.types.beta.beta_thinking_config_enabled_param Check import: anthropic.types.beta.beta_thinking_config_param Check import: anthropic.types.beta.beta_thinking_delta Check import: anthropic.types.beta.beta_thinking_turns_param Check import: anthropic.types.beta.beta_tool_bash_20241022_param Check import: anthropic.types.beta.beta_tool_bash_20250124_param Check import: anthropic.types.beta.beta_tool_choice_any_param Check import: anthropic.types.beta.beta_tool_choice_auto_param Check import: anthropic.types.beta.beta_tool_choice_none_param Check import: anthropic.types.beta.beta_tool_choice_param Check import: anthropic.types.beta.beta_tool_choice_tool_param Check import: anthropic.types.beta.beta_tool_computer_use_20241022_param Check import: anthropic.types.beta.beta_tool_computer_use_20250124_param Check import: anthropic.types.beta.beta_tool_computer_use_20251124_param Check import: anthropic.types.beta.beta_tool_param Check import: anthropic.types.beta.beta_tool_reference_block Check import: anthropic.types.beta.beta_tool_reference_block_param Check import: anthropic.types.beta.beta_tool_result_block_param Check import: anthropic.types.beta.beta_tool_search_tool_bm25_20251119_param Check import: anthropic.types.beta.beta_tool_search_tool_regex_20251119_param Check import: anthropic.types.beta.beta_tool_search_tool_result_block Check import: anthropic.types.beta.beta_tool_search_tool_result_block_param Check import: anthropic.types.beta.beta_tool_search_tool_result_error Check import: anthropic.types.beta.beta_tool_search_tool_result_error_param Check import: anthropic.types.beta.beta_tool_search_tool_search_result_block Check import: anthropic.types.beta.beta_tool_search_tool_search_result_block_param Check import: anthropic.types.beta.beta_tool_text_editor_20241022_param Check import: anthropic.types.beta.beta_tool_text_editor_20250124_param Check import: anthropic.types.beta.beta_tool_text_editor_20250429_param Check import: anthropic.types.beta.beta_tool_text_editor_20250728_param Check import: anthropic.types.beta.beta_tool_union_param Check import: anthropic.types.beta.beta_tool_use_block Check import: anthropic.types.beta.beta_tool_use_block_param Check import: anthropic.types.beta.beta_tool_uses_keep_param Check import: anthropic.types.beta.beta_tool_uses_trigger_param Check import: anthropic.types.beta.beta_url_image_source_param Check import: anthropic.types.beta.beta_url_pdf_source_param Check import: anthropic.types.beta.beta_usage Check import: anthropic.types.beta.beta_web_fetch_block Check import: anthropic.types.beta.beta_web_fetch_block_param Check import: anthropic.types.beta.beta_web_fetch_tool_20250910_param Check import: anthropic.types.beta.beta_web_fetch_tool_result_block Check import: anthropic.types.beta.beta_web_fetch_tool_result_block_param Check import: anthropic.types.beta.beta_web_fetch_tool_result_error_block Check import: anthropic.types.beta.beta_web_fetch_tool_result_error_block_param Check import: anthropic.types.beta.beta_web_fetch_tool_result_error_code Check import: anthropic.types.beta.beta_web_search_result_block Check import: anthropic.types.beta.beta_web_search_result_block_param Check import: anthropic.types.beta.beta_web_search_tool_20250305_param Check import: anthropic.types.beta.beta_web_search_tool_request_error_param Check import: anthropic.types.beta.beta_web_search_tool_result_block Check import: anthropic.types.beta.beta_web_search_tool_result_block_content Check import: anthropic.types.beta.beta_web_search_tool_result_block_param Check import: anthropic.types.beta.beta_web_search_tool_result_block_param_content_param Check import: anthropic.types.beta.beta_web_search_tool_result_error Check import: anthropic.types.beta.beta_web_search_tool_result_error_code Check import: anthropic.types.beta.deleted_file Check import: anthropic.types.beta.file_list_params Check import: anthropic.types.beta.file_metadata Check import: anthropic.types.beta.file_upload_params Check import: anthropic.types.beta.message_count_tokens_params Check import: anthropic.types.beta.message_create_params Check import: anthropic.types.beta.messages Check import: anthropic.types.beta.messages.batch_create_params Check import: anthropic.types.beta.messages.batch_list_params Check import: anthropic.types.beta.messages.beta_deleted_message_batch Check import: anthropic.types.beta.messages.beta_message_batch Check import: anthropic.types.beta.messages.beta_message_batch_canceled_result Check import: anthropic.types.beta.messages.beta_message_batch_errored_result Check import: anthropic.types.beta.messages.beta_message_batch_expired_result Check import: anthropic.types.beta.messages.beta_message_batch_individual_response Check import: anthropic.types.beta.messages.beta_message_batch_request_counts Check import: anthropic.types.beta.messages.beta_message_batch_result Check import: anthropic.types.beta.messages.beta_message_batch_succeeded_result Check import: anthropic.types.beta.model_list_params Check import: anthropic.types.beta.parsed_beta_message Check import: anthropic.types.beta.skill_create_params Check import: anthropic.types.beta.skill_create_response Check import: anthropic.types.beta.skill_delete_response Check import: anthropic.types.beta.skill_list_params Check import: anthropic.types.beta.skill_list_response Check import: anthropic.types.beta.skill_retrieve_response Check import: anthropic.types.beta.skills Check import: anthropic.types.beta.skills.version_create_params Check import: anthropic.types.beta.skills.version_create_response Check import: anthropic.types.beta.skills.version_delete_response Check import: anthropic.types.beta.skills.version_list_params Check import: anthropic.types.beta.skills.version_list_response Check import: anthropic.types.beta.skills.version_retrieve_response Check import: anthropic.types.beta_api_error Check import: anthropic.types.beta_authentication_error Check import: anthropic.types.beta_billing_error Check import: anthropic.types.beta_error Check import: anthropic.types.beta_error_response Check import: anthropic.types.beta_gateway_timeout_error Check import: anthropic.types.beta_invalid_request_error Check import: anthropic.types.beta_not_found_error Check import: anthropic.types.beta_overloaded_error Check import: anthropic.types.beta_permission_error Check import: anthropic.types.beta_rate_limit_error Check import: anthropic.types.cache_control_ephemeral_param Check import: anthropic.types.cache_creation Check import: anthropic.types.citation_char_location Check import: anthropic.types.citation_char_location_param Check import: anthropic.types.citation_content_block_location Check import: anthropic.types.citation_content_block_location_param Check import: anthropic.types.citation_page_location Check import: anthropic.types.citation_page_location_param Check import: anthropic.types.citation_search_result_location_param Check import: anthropic.types.citation_web_search_result_location_param Check import: anthropic.types.citations_config_param Check import: anthropic.types.citations_delta Check import: anthropic.types.citations_search_result_location Check import: anthropic.types.citations_web_search_result_location Check import: anthropic.types.completion Check import: anthropic.types.completion_create_params Check import: anthropic.types.content_block Check import: anthropic.types.content_block_delta_event Check import: anthropic.types.content_block_param Check import: anthropic.types.content_block_source_content_param Check import: anthropic.types.content_block_source_param Check import: anthropic.types.content_block_start_event Check import: anthropic.types.content_block_stop_event Check import: anthropic.types.document_block_param Check import: anthropic.types.image_block_param Check import: anthropic.types.input_json_delta Check import: anthropic.types.json_output_format_param Check import: anthropic.types.message Check import: anthropic.types.message_count_tokens_params Check import: anthropic.types.message_count_tokens_tool_param Check import: anthropic.types.message_create_params Check import: anthropic.types.message_delta_event Check import: anthropic.types.message_delta_usage Check import: anthropic.types.message_param Check import: anthropic.types.message_start_event Check import: anthropic.types.message_stop_event Check import: anthropic.types.message_stream_event Check import: anthropic.types.message_tokens_count Check import: anthropic.types.messages Check import: anthropic.types.messages.batch_create_params Check import: anthropic.types.messages.batch_list_params Check import: anthropic.types.messages.deleted_message_batch Check import: anthropic.types.messages.message_batch Check import: anthropic.types.messages.message_batch_canceled_result Check import: anthropic.types.messages.message_batch_errored_result Check import: anthropic.types.messages.message_batch_expired_result Check import: anthropic.types.messages.message_batch_individual_response Check import: anthropic.types.messages.message_batch_request_counts Check import: anthropic.types.messages.message_batch_result Check import: anthropic.types.messages.message_batch_succeeded_result Check import: anthropic.types.metadata_param Check import: anthropic.types.model Check import: anthropic.types.model_info Check import: anthropic.types.model_list_params Check import: anthropic.types.model_param Check import: anthropic.types.output_config_param Check import: anthropic.types.parsed_message Check import: anthropic.types.plain_text_source_param Check import: anthropic.types.raw_content_block_delta Check import: anthropic.types.raw_content_block_delta_event Check import: anthropic.types.raw_content_block_start_event Check import: anthropic.types.raw_content_block_stop_event Check import: anthropic.types.raw_message_delta_event Check import: anthropic.types.raw_message_start_event Check import: anthropic.types.raw_message_stop_event Check import: anthropic.types.raw_message_stream_event Check import: anthropic.types.redacted_thinking_block Check import: anthropic.types.redacted_thinking_block_param Check import: anthropic.types.search_result_block_param Check import: anthropic.types.server_tool_usage Check import: anthropic.types.server_tool_use_block Check import: anthropic.types.server_tool_use_block_param Check import: anthropic.types.shared Check import: anthropic.types.shared.api_error_object Check import: anthropic.types.shared.authentication_error Check import: anthropic.types.shared.billing_error Check import: anthropic.types.shared.error_object Check import: anthropic.types.shared.error_response Check import: anthropic.types.shared.gateway_timeout_error Check import: anthropic.types.shared.invalid_request_error Check import: anthropic.types.shared.not_found_error Check import: anthropic.types.shared.overloaded_error Check import: anthropic.types.shared.permission_error Check import: anthropic.types.shared.rate_limit_error Check import: anthropic.types.signature_delta Check import: anthropic.types.stop_reason Check import: anthropic.types.text_block Check import: anthropic.types.text_block_param Check import: anthropic.types.text_citation Check import: anthropic.types.text_citation_param Check import: anthropic.types.text_delta Check import: anthropic.types.thinking_block Check import: anthropic.types.thinking_block_param Check import: anthropic.types.thinking_config_disabled_param Check import: anthropic.types.thinking_config_enabled_param Check import: anthropic.types.thinking_config_param Check import: anthropic.types.thinking_delta Check import: anthropic.types.tool_bash_20250124_param Check import: anthropic.types.tool_choice_any_param Check import: anthropic.types.tool_choice_auto_param Check import: anthropic.types.tool_choice_none_param Check import: anthropic.types.tool_choice_param Check import: anthropic.types.tool_choice_tool_param Check import: anthropic.types.tool_param Check import: anthropic.types.tool_result_block_param Check import: anthropic.types.tool_text_editor_20250124_param Check import: anthropic.types.tool_text_editor_20250429_param Check import: anthropic.types.tool_text_editor_20250728_param Check import: anthropic.types.tool_union_param Check import: anthropic.types.tool_use_block Check import: anthropic.types.tool_use_block_param Check import: anthropic.types.url_image_source_param Check import: anthropic.types.url_pdf_source_param Check import: anthropic.types.usage Check import: anthropic.types.web_search_result_block Check import: anthropic.types.web_search_result_block_param Check import: anthropic.types.web_search_tool_20250305_param Check import: anthropic.types.web_search_tool_request_error_param Check import: anthropic.types.web_search_tool_result_block Check import: anthropic.types.web_search_tool_result_block_content Check import: anthropic.types.web_search_tool_result_block_param Check import: anthropic.types.web_search_tool_result_block_param_content_param Check import: anthropic.types.web_search_tool_result_error + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + PATH=/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin + PYTHONPATH=/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib64/python3.14/site-packages:/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages + PYTHONDONTWRITEBYTECODE=1 + PYTEST_ADDOPTS=' --ignore=/builddir/build/BUILD/python-anthropic-0.77.0-build/.pyproject-builddir' + PYTEST_XDIST_AUTO_NUM_WORKERS=4 + /usr/bin/pytest ============================= test session starts ============================== platform linux -- Python 3.14.2, pytest-8.4.2, pluggy-1.6.0 rootdir: /builddir/build/BUILD/python-anthropic-0.77.0-build/anthropic-0.77.0 configfile: pyproject.toml testpaths: tests plugins: asyncio-1.1.0, inline-snapshot-0.31.1, respx-0.22.0, anyio-4.12.1 asyncio: mode=Mode.AUTO, asyncio_default_fixture_loop_scope=session, asyncio_default_test_loop_scope=function collected 1351 items tests/api_resources/beta/messages/test_batches.py ssssFFFF.FFFFFFFF.FFFF [ 1%] ..s [ 1%] tests/api_resources/beta/skills/test_versions.py sssssFFFF.FFFF.FFFF. [ 3%] tests/api_resources/beta/test_files.py FFFFFFFF......FFFF.FFFF [ 5%] tests/api_resources/beta/test_messages.py ssssssssssss. [ 5%] tests/api_resources/beta/test_models.py FFFF.FFFF [ 6%] tests/api_resources/beta/test_skills.py ssssFFFF.FFFFFFFF. [ 7%] tests/api_resources/messages/test_batches.py FFFFFF.FFFFFFF.FFF.. [ 9%] tests/api_resources/test_completions.py FFFFFFFF [ 10%] tests/api_resources/test_messages.py FFFFFFFFFFFFF [ 11%] tests/api_resources/test_models.py FFFF.FFFF [ 11%] tests/lib/tools/test_runners.py . [ 11%] tests/test_legacy_response.py . [ 11%] tests/test_response.py . [ 11%] tests/api_resources/beta/messages/test_batches.py ssssFFFF.FFFFFFFF.FFFF [ 13%] .s [ 13%] tests/api_resources/beta/skills/test_versions.py sssssFFFF.FFFF.FFFF. [ 15%] tests/api_resources/beta/test_files.py FFFFFFFF......FFFF.FFFF [ 16%] tests/api_resources/beta/test_messages.py ssssssssssss. [ 17%] tests/api_resources/beta/test_models.py FFFF.FFFF [ 18%] tests/api_resources/beta/test_skills.py ssssFFFF.FFFFFFFF. [ 19%] tests/api_resources/messages/test_batches.py FFFFFF.FFFFFFF.FFF. [ 21%] tests/api_resources/test_completions.py FFFFFFFF [ 21%] tests/api_resources/test_messages.py FFFFFFFFFFFFF [ 22%] tests/api_resources/test_models.py FFFF.FFFF [ 23%] tests/api_resources/beta/messages/test_batches.py ssssFFFF.FFFFFFFF.FFFF [ 25%] ..s [ 25%] tests/api_resources/beta/skills/test_versions.py sssssFFFF.FFFF.FFFF. [ 26%] tests/api_resources/beta/test_files.py FFFFFFFF......FFFF.FFFF [ 28%] tests/api_resources/beta/test_messages.py ssssssssssss. [ 29%] tests/api_resources/beta/test_models.py FFFF.FFFF [ 30%] tests/api_resources/beta/test_skills.py ssssFFFF.FFFFFFFF. [ 31%] tests/api_resources/messages/test_batches.py FFFFFF.FFFFFFF.FFF.. [ 32%] tests/api_resources/test_completions.py FFFFFFFF [ 33%] tests/api_resources/test_messages.py FFFFFFFFFFFFF [ 34%] tests/api_resources/test_models.py FFFF.FFFF [ 35%] tests/test_response.py . [ 35%] tests/api_resources/beta/messages/test_batches.py ssssFFFF.FFFFFFFF.FFFF [ 36%] .s [ 37%] tests/api_resources/beta/skills/test_versions.py sssssFFFF.FFFF.FFFF. [ 38%] tests/api_resources/beta/test_files.py FFFFFFFF......FFFF.FFFF [ 40%] tests/api_resources/beta/test_messages.py ssssssssssss. [ 41%] tests/api_resources/beta/test_models.py FFFF.FFFF [ 41%] tests/api_resources/beta/test_skills.py ssssFFFF.FFFFFFFF. [ 43%] tests/api_resources/messages/test_batches.py FFFFFF.FFFFFFF.FFF. [ 44%] tests/api_resources/test_completions.py FFFFFFFF [ 45%] tests/api_resources/test_messages.py FFFFFFFFFFFFF [ 46%] tests/api_resources/test_models.py FFFF.FFFF [ 46%] tests/api_resources/beta/messages/test_batches.py ssssEEEEEEEEEEEEEEEEEE [ 48%] Es [ 48%] tests/api_resources/beta/skills/test_versions.py sssssEEEEEEEEEEEEEEE [ 50%] tests/api_resources/beta/test_files.py EEEEEEEEEssssEEEEEEEEEE [ 51%] tests/api_resources/beta/test_messages.py ssssssssssssE [ 52%] tests/api_resources/beta/test_models.py EEEEEEEEE [ 53%] tests/api_resources/beta/test_skills.py ssssEEEEEEEEEEEEEE [ 54%] tests/api_resources/messages/test_batches.py EEEEEEEEEEEEEEEEEEE [ 56%] tests/api_resources/test_completions.py EEEEEEEE [ 56%] tests/api_resources/test_messages.py EEEEEEEEEEEEE [ 57%] tests/api_resources/test_models.py EEEEEEEEE [ 58%] tests/api_resources/beta/test_output_format_conversion.py .............. [ 59%] ...... [ 59%] tests/decoders/test_jsonl.py ...... [ 60%] tests/lib/_parse/test_beta_messages.py ... [ 60%] tests/lib/_parse/test_messages.py ..... [ 60%] tests/lib/_parse/test_transform.py ............ [ 61%] tests/lib/streaming/test_beta_messages.py ............ [ 62%] tests/lib/streaming/test_messages.py ........... [ 63%] tests/lib/streaming/test_partial_json.py .. [ 63%] tests/lib/test_azure.py ......... [ 64%] tests/lib/test_bedrock.py ...... [ 64%] tests/lib/test_vertex.py .................. [ 66%] tests/lib/tools/test_functions.py .................... [ 67%] tests/lib/tools/test_runners.py ....F...... [ 68%] tests/test_client.py .......s........................................... [ 72%] ................................s....................................... [ 77%] .............................. [ 79%] tests/test_deepcopy.py ...... [ 80%] tests/test_extract_files.py ..... [ 80%] tests/test_files.py ...... [ 80%] tests/test_legacy_response.py ........... [ 81%] tests/test_models.py ................................................ [ 85%] tests/test_qs.py ........... [ 86%] tests/test_required_args.py ...... [ 86%] tests/test_response.py .......................... [ 88%] tests/test_streaming.py ..................... [ 90%] tests/test_transform.py ................................................ [ 93%] ........ [ 94%] tests/test_utils/test_datetime_parse.py ................................ [ 96%] ............................... [ 98%] tests/test_utils/test_json.py ......... [ 99%] tests/test_utils/test_proxy.py .. [ 99%] tests/test_utils/test_typing.py ..... [100%] ==================================== ERRORS ==================================== _______ ERROR at setup of TestAsyncBatches.test_method_retrieve[aiohttp] _______ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:696: in pytest_fixture_setup hook_result = yield ^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncBatches.test_method_retrieve_with_all_params[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ____ ERROR at setup of TestAsyncBatches.test_raw_response_retrieve[aiohttp] ____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncBatches.test_streaming_response_retrieve[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ____ ERROR at setup of TestAsyncBatches.test_path_params_retrieve[aiohttp] _____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _________ ERROR at setup of TestAsyncBatches.test_method_list[aiohttp] _________ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncBatches.test_method_list_with_all_params[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ______ ERROR at setup of TestAsyncBatches.test_raw_response_list[aiohttp] ______ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ___ ERROR at setup of TestAsyncBatches.test_streaming_response_list[aiohttp] ___ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ________ ERROR at setup of TestAsyncBatches.test_method_delete[aiohttp] ________ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncBatches.test_method_delete_with_all_params[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _____ ERROR at setup of TestAsyncBatches.test_raw_response_delete[aiohttp] _____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra __ ERROR at setup of TestAsyncBatches.test_streaming_response_delete[aiohttp] __ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _____ ERROR at setup of TestAsyncBatches.test_path_params_delete[aiohttp] ______ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ________ ERROR at setup of TestAsyncBatches.test_method_cancel[aiohttp] ________ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncBatches.test_method_cancel_with_all_params[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _____ ERROR at setup of TestAsyncBatches.test_raw_response_cancel[aiohttp] _____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra __ ERROR at setup of TestAsyncBatches.test_streaming_response_cancel[aiohttp] __ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _____ ERROR at setup of TestAsyncBatches.test_path_params_cancel[aiohttp] ______ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ______ ERROR at setup of TestAsyncVersions.test_method_retrieve[aiohttp] _______ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncVersions.test_method_retrieve_with_all_params[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ___ ERROR at setup of TestAsyncVersions.test_raw_response_retrieve[aiohttp] ____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncVersions.test_streaming_response_retrieve[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ____ ERROR at setup of TestAsyncVersions.test_path_params_retrieve[aiohttp] ____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ________ ERROR at setup of TestAsyncVersions.test_method_list[aiohttp] _________ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncVersions.test_method_list_with_all_params[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _____ ERROR at setup of TestAsyncVersions.test_raw_response_list[aiohttp] ______ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra __ ERROR at setup of TestAsyncVersions.test_streaming_response_list[aiohttp] ___ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ______ ERROR at setup of TestAsyncVersions.test_path_params_list[aiohttp] ______ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _______ ERROR at setup of TestAsyncVersions.test_method_delete[aiohttp] ________ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncVersions.test_method_delete_with_all_params[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ____ ERROR at setup of TestAsyncVersions.test_raw_response_delete[aiohttp] _____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncVersions.test_streaming_response_delete[aiohttp] __ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _____ ERROR at setup of TestAsyncVersions.test_path_params_delete[aiohttp] _____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra __________ ERROR at setup of TestAsyncFiles.test_method_list[aiohttp] __________ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra __ ERROR at setup of TestAsyncFiles.test_method_list_with_all_params[aiohttp] __ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _______ ERROR at setup of TestAsyncFiles.test_raw_response_list[aiohttp] _______ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ____ ERROR at setup of TestAsyncFiles.test_streaming_response_list[aiohttp] ____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _________ ERROR at setup of TestAsyncFiles.test_method_delete[aiohttp] _________ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncFiles.test_method_delete_with_all_params[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ______ ERROR at setup of TestAsyncFiles.test_raw_response_delete[aiohttp] ______ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ___ ERROR at setup of TestAsyncFiles.test_streaming_response_delete[aiohttp] ___ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ______ ERROR at setup of TestAsyncFiles.test_path_params_delete[aiohttp] _______ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _____ ERROR at setup of TestAsyncFiles.test_path_params_download[aiohttp] ______ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ___ ERROR at setup of TestAsyncFiles.test_method_retrieve_metadata[aiohttp] ____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncFiles.test_method_retrieve_metadata_with_all_params[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncFiles.test_raw_response_retrieve_metadata[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncFiles.test_streaming_response_retrieve_metadata[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncFiles.test_path_params_retrieve_metadata[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _________ ERROR at setup of TestAsyncFiles.test_method_upload[aiohttp] _________ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncFiles.test_method_upload_with_all_params[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ______ ERROR at setup of TestAsyncFiles.test_raw_response_upload[aiohttp] ______ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ___ ERROR at setup of TestAsyncFiles.test_streaming_response_upload[aiohttp] ___ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra __ ERROR at setup of TestAsyncMessages.test_pydantic_error_in_create[aiohttp] __ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _______ ERROR at setup of TestAsyncModels.test_method_retrieve[aiohttp] ________ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncModels.test_method_retrieve_with_all_params[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ____ ERROR at setup of TestAsyncModels.test_raw_response_retrieve[aiohttp] _____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncModels.test_streaming_response_retrieve[aiohttp] __ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _____ ERROR at setup of TestAsyncModels.test_path_params_retrieve[aiohttp] _____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _________ ERROR at setup of TestAsyncModels.test_method_list[aiohttp] __________ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncModels.test_method_list_with_all_params[aiohttp] __ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ______ ERROR at setup of TestAsyncModels.test_raw_response_list[aiohttp] _______ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ___ ERROR at setup of TestAsyncModels.test_streaming_response_list[aiohttp] ____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _______ ERROR at setup of TestAsyncSkills.test_method_retrieve[aiohttp] ________ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncSkills.test_method_retrieve_with_all_params[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ____ ERROR at setup of TestAsyncSkills.test_raw_response_retrieve[aiohttp] _____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncSkills.test_streaming_response_retrieve[aiohttp] __ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _____ ERROR at setup of TestAsyncSkills.test_path_params_retrieve[aiohttp] _____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _________ ERROR at setup of TestAsyncSkills.test_method_list[aiohttp] __________ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncSkills.test_method_list_with_all_params[aiohttp] __ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ______ ERROR at setup of TestAsyncSkills.test_raw_response_list[aiohttp] _______ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ___ ERROR at setup of TestAsyncSkills.test_streaming_response_list[aiohttp] ____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ________ ERROR at setup of TestAsyncSkills.test_method_delete[aiohttp] _________ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncSkills.test_method_delete_with_all_params[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _____ ERROR at setup of TestAsyncSkills.test_raw_response_delete[aiohttp] ______ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra __ ERROR at setup of TestAsyncSkills.test_streaming_response_delete[aiohttp] ___ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ______ ERROR at setup of TestAsyncSkills.test_path_params_delete[aiohttp] ______ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ________ ERROR at setup of TestAsyncBatches.test_method_create[aiohttp] ________ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _____ ERROR at setup of TestAsyncBatches.test_raw_response_create[aiohttp] _____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra __ ERROR at setup of TestAsyncBatches.test_streaming_response_create[aiohttp] __ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _______ ERROR at setup of TestAsyncBatches.test_method_retrieve[aiohttp] _______ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ____ ERROR at setup of TestAsyncBatches.test_raw_response_retrieve[aiohttp] ____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncBatches.test_streaming_response_retrieve[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ____ ERROR at setup of TestAsyncBatches.test_path_params_retrieve[aiohttp] _____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _________ ERROR at setup of TestAsyncBatches.test_method_list[aiohttp] _________ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncBatches.test_method_list_with_all_params[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ______ ERROR at setup of TestAsyncBatches.test_raw_response_list[aiohttp] ______ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ___ ERROR at setup of TestAsyncBatches.test_streaming_response_list[aiohttp] ___ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ________ ERROR at setup of TestAsyncBatches.test_method_delete[aiohttp] ________ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _____ ERROR at setup of TestAsyncBatches.test_raw_response_delete[aiohttp] _____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra __ ERROR at setup of TestAsyncBatches.test_streaming_response_delete[aiohttp] __ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _____ ERROR at setup of TestAsyncBatches.test_path_params_delete[aiohttp] ______ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ________ ERROR at setup of TestAsyncBatches.test_method_cancel[aiohttp] ________ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _____ ERROR at setup of TestAsyncBatches.test_raw_response_cancel[aiohttp] _____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra __ ERROR at setup of TestAsyncBatches.test_streaming_response_cancel[aiohttp] __ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _____ ERROR at setup of TestAsyncBatches.test_path_params_cancel[aiohttp] ______ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncCompletions.test_method_create_overload_1[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncCompletions.test_method_create_with_all_params_overload_1[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncCompletions.test_raw_response_create_overload_1[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncCompletions.test_streaming_response_create_overload_1[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncCompletions.test_method_create_overload_2[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncCompletions.test_method_create_with_all_params_overload_2[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncCompletions.test_raw_response_create_overload_2[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncCompletions.test_streaming_response_create_overload_2[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra __ ERROR at setup of TestAsyncMessages.test_method_create_overload_1[aiohttp] __ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncMessages.test_method_create_with_all_params_overload_1[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncMessages.test_raw_response_create_overload_1[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncMessages.test_streaming_response_create_overload_1[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra __ ERROR at setup of TestAsyncMessages.test_method_create_overload_2[aiohttp] __ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncMessages.test_method_create_with_all_params_overload_2[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncMessages.test_raw_response_create_overload_2[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncMessages.test_streaming_response_create_overload_2[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra __ ERROR at setup of TestAsyncMessages.test_deprecated_model_warning[aiohttp] __ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ____ ERROR at setup of TestAsyncMessages.test_method_count_tokens[aiohttp] _____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncMessages.test_method_count_tokens_with_all_params[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncMessages.test_raw_response_count_tokens[aiohttp] __ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncMessages.test_streaming_response_count_tokens[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _______ ERROR at setup of TestAsyncModels.test_method_retrieve[aiohttp] ________ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncModels.test_method_retrieve_with_all_params[aiohttp] _ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ____ ERROR at setup of TestAsyncModels.test_raw_response_retrieve[aiohttp] _____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncModels.test_streaming_response_retrieve[aiohttp] __ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _____ ERROR at setup of TestAsyncModels.test_path_params_retrieve[aiohttp] _____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _________ ERROR at setup of TestAsyncModels.test_method_list[aiohttp] __________ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra _ ERROR at setup of TestAsyncModels.test_method_list_with_all_params[aiohttp] __ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ______ ERROR at setup of TestAsyncModels.test_raw_response_list[aiohttp] _______ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra ___ ERROR at setup of TestAsyncModels.test_streaming_response_list[aiohttp] ____ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:272: in _asyncgen_fixture_wrapper result = runner.run(setup(), context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/runners.py:127: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/asyncio/base_events.py:719: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:268: in setup res = await gen_obj.__anext__() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^ tests/conftest.py:77: in async_client http_client = DefaultAioHttpClient() ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1508: in __init__ raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra") E RuntimeError: To use the aiohttp client you must have installed the package with the `aiohttp` extra =================================== FAILURES =================================== ___________________ TestBatches.test_method_retrieve[loose] ____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:240: in test_method_retrieve batch = client.beta.messages.batches.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:152: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.428011 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.952018 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________ TestBatches.test_method_retrieve_with_all_params[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:247: in test_method_retrieve_with_all_params batch = client.beta.messages.batches.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:152: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.448371 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.767685 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ________________ TestBatches.test_raw_response_retrieve[loose] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:255: in test_raw_response_retrieve response = client.beta.messages.batches.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:152: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.487577 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.983500 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestBatches.test_streaming_response_retrieve[loose] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:266: in test_streaming_response_retrieve with client.beta.messages.batches.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:152: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.485164 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.856263 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________________ TestBatches.test_method_list[loose] ______________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:286: in test_method_list batch = client.beta.messages.batches.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:214: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7eb2b690>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches?beta=true in 0.465879 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7eb2b690>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches?beta=true in 0.967215 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7eb2b690>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestBatches.test_method_list_with_all_params[loose] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:291: in test_method_list_with_all_params batch = client.beta.messages.batches.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:214: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7e598040>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches?beta=true in 0.444247 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7e598040>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches?beta=true in 0.863949 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7e598040>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error __________________ TestBatches.test_raw_response_list[loose] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:301: in test_raw_response_list response = client.beta.messages.batches.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:214: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e598a90>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches?beta=true in 0.378568 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e598a90>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches?beta=true in 0.863622 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e598a90>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _______________ TestBatches.test_streaming_response_list[loose] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:310: in test_streaming_response_list with client.beta.messages.batches.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:214: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e59afb0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches?beta=true in 0.491453 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e59afb0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches?beta=true in 0.879847 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e59afb0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________________ TestBatches.test_method_delete[loose] _____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:321: in test_method_delete batch = client.beta.messages.batches.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:281: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-dea03361-64ef-4f5f-a490-c707118f3acc', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.410628 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-dea03361-64ef-4f5f-a490-c707118f3acc', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.875957 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-dea03361-64ef-4f5f-a490-c707118f3acc', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________ TestBatches.test_method_delete_with_all_params[loose] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:328: in test_method_delete_with_all_params batch = client.beta.messages.batches.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:281: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-6c3a9b8c-93ce-4c12-97f9-534ee3ac6eed', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.418053 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-6c3a9b8c-93ce-4c12-97f9-534ee3ac6eed', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.809761 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-6c3a9b8c-93ce-4c12-97f9-534ee3ac6eed', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _________________ TestBatches.test_raw_response_delete[loose] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:336: in test_raw_response_delete response = client.beta.messages.batches.with_raw_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:281: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-793379f0-7eb5-4776-871d-0f4da14b50a7', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.450838 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-793379f0-7eb5-4776-871d-0f4da14b50a7', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.919141 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-793379f0-7eb5-4776-871d-0f4da14b50a7', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestBatches.test_streaming_response_delete[loose] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:347: in test_streaming_response_delete with client.beta.messages.batches.with_streaming_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:281: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-0ef15f6b-6463-4298-b609-621b587dd6c0', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.493714 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-0ef15f6b-6463-4298-b609-621b587dd6c0', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.801284 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-0ef15f6b-6463-4298-b609-621b587dd6c0', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________________ TestBatches.test_method_cancel[loose] _____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:367: in test_method_cancel batch = client.beta.messages.batches.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:342: in cancel return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-1da9d3a2-d4a6-4c4c-9c44-bd7f252c5332', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.395861 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-1da9d3a2-d4a6-4c4c-9c44-bd7f252c5332', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.966011 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-1da9d3a2-d4a6-4c4c-9c44-bd7f252c5332', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________ TestBatches.test_method_cancel_with_all_params[loose] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:374: in test_method_cancel_with_all_params batch = client.beta.messages.batches.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:342: in cancel return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-b7f9a0e8-e6c1-4341-87b9-7631ba387830', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.450159 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-b7f9a0e8-e6c1-4341-87b9-7631ba387830', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.835119 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-b7f9a0e8-e6c1-4341-87b9-7631ba387830', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _________________ TestBatches.test_raw_response_cancel[loose] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:382: in test_raw_response_cancel response = client.beta.messages.batches.with_raw_response.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:342: in cancel return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-7bb17a38-c1f3-48d2-98ae-ede6d5bbaf5e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.471351 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-7bb17a38-c1f3-48d2-98ae-ede6d5bbaf5e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.853005 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-7bb17a38-c1f3-48d2-98ae-ede6d5bbaf5e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestBatches.test_streaming_response_cancel[loose] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:393: in test_streaming_response_cancel with client.beta.messages.batches.with_streaming_response.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:342: in cancel return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-5c8a87a2-60c8-4a36-afd2-8d7d04020c2d', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.484980 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-5c8a87a2-60c8-4a36-afd2-8d7d04020c2d', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.835791 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-5c8a87a2-60c8-4a36-afd2-8d7d04020c2d', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________________ TestVersions.test_method_retrieve[loose] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:80: in test_method_retrieve version = client.beta.skills.versions.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:180: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.433230 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.905854 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________ TestVersions.test_method_retrieve_with_all_params[loose] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:88: in test_method_retrieve_with_all_params version = client.beta.skills.versions.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:180: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.456661 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.877296 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ________________ TestVersions.test_raw_response_retrieve[loose] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:97: in test_raw_response_retrieve response = client.beta.skills.versions.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:180: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.499804 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.792456 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestVersions.test_streaming_response_retrieve[loose] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:109: in test_streaming_response_retrieve with client.beta.skills.versions.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:180: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.416273 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.964087 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________________ TestVersions.test_method_list[loose] _____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:137: in test_method_list version = client.beta.skills.versions.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:239: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7f7b52d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.431985 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7f7b52d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.855363 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7f7b52d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestVersions.test_method_list_with_all_params[loose] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:144: in test_method_list_with_all_params version = client.beta.skills.versions.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:239: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {'limit': 0, 'page': 'page'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e11d430>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?limit=0&page=page DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.461569 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {'limit': 0, 'page': 'page'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e11d430>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?limit=0&page=page DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.895494 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {'limit': 0, 'page': 'page'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e11d430>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?limit=0&page=page DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error __________________ TestVersions.test_raw_response_list[loose] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:154: in test_raw_response_list response = client.beta.skills.versions.with_raw_response.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:239: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e11c9e0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.481461 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e11c9e0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.925042 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e11c9e0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _______________ TestVersions.test_streaming_response_list[loose] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:165: in test_streaming_response_list with client.beta.skills.versions.with_streaming_response.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:239: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7eb2a770>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.481928 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7eb2a770>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.813663 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7eb2a770>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________________ TestVersions.test_method_delete[loose] ____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:185: in test_method_delete version = client.beta.skills.versions.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:308: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-39e3d1d4-997a-4808-8b92-22ba4d19c263', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.458519 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-39e3d1d4-997a-4808-8b92-22ba4d19c263', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.888517 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-39e3d1d4-997a-4808-8b92-22ba4d19c263', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________ TestVersions.test_method_delete_with_all_params[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:193: in test_method_delete_with_all_params version = client.beta.skills.versions.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:308: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-74c07fe4-ac6e-45b9-b784-0df7df3a5f89', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.399048 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-74c07fe4-ac6e-45b9-b784-0df7df3a5f89', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.939222 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-74c07fe4-ac6e-45b9-b784-0df7df3a5f89', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _________________ TestVersions.test_raw_response_delete[loose] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:202: in test_raw_response_delete response = client.beta.skills.versions.with_raw_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:308: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-82e0f290-6fe2-4922-bd4c-3050d2a61391', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.441500 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-82e0f290-6fe2-4922-bd4c-3050d2a61391', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.935371 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-82e0f290-6fe2-4922-bd4c-3050d2a61391', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestVersions.test_streaming_response_delete[loose] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:214: in test_streaming_response_delete with client.beta.skills.versions.with_streaming_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:308: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-2f0d9afa-bd6c-4832-beb7-fba3a8131588', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.493363 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-2f0d9afa-bd6c-4832-beb7-fba3a8131588', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.848683 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-2f0d9afa-bd6c-4832-beb7-fba3a8131588', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________________ TestFiles.test_method_list[loose] _______________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:33: in test_method_list file = client.beta.files.list() ^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:107: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7e11d900>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.440454 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7e11d900>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.780734 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7e11d900>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestFiles.test_method_list_with_all_params[loose] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:38: in test_method_list_with_all_params file = client.beta.files.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:107: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7e11f740>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.412128 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7e11f740>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.889367 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7e11f740>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________________ TestFiles.test_raw_response_list[loose] ____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:48: in test_raw_response_list response = client.beta.files.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:107: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e11d900>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.446973 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e11d900>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.809916 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e11d900>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ________________ TestFiles.test_streaming_response_list[loose] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:57: in test_streaming_response_list with client.beta.files.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:107: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e11c1a0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.457481 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e11c1a0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.824200 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e11c1a0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________________ TestFiles.test_method_delete[loose] ______________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:68: in test_method_delete file = client.beta.files.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:168: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-e7e36ee1-f11e-4822-8e60-8fbd0a4bd249', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.445110 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-e7e36ee1-f11e-4822-8e60-8fbd0a4bd249', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.850462 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-e7e36ee1-f11e-4822-8e60-8fbd0a4bd249', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestFiles.test_method_delete_with_all_params[loose] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:75: in test_method_delete_with_all_params file = client.beta.files.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:168: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-6e1df8d1-ba24-423e-9755-8ced12998af1', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.487700 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-6e1df8d1-ba24-423e-9755-8ced12998af1', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.754657 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-6e1df8d1-ba24-423e-9755-8ced12998af1', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error __________________ TestFiles.test_raw_response_delete[loose] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:83: in test_raw_response_delete response = client.beta.files.with_raw_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:168: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-ef95491f-3829-487a-a5ea-46442fb123a6', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.458809 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-ef95491f-3829-487a-a5ea-46442fb123a6', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.784136 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-ef95491f-3829-487a-a5ea-46442fb123a6', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _______________ TestFiles.test_streaming_response_delete[loose] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:94: in test_streaming_response_delete with client.beta.files.with_streaming_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:168: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-429b5e0d-79b3-405c-a928-89df6cd057dc', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.379258 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-429b5e0d-79b3-405c-a928-89df6cd057dc', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.992783 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-429b5e0d-79b3-405c-a928-89df6cd057dc', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ________________ TestFiles.test_method_retrieve_metadata[loose] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:185: in test_method_retrieve_metadata file = client.beta.files.retrieve_metadata( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:267: in retrieve_metadata return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.479346 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.832646 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ________ TestFiles.test_method_retrieve_metadata_with_all_params[loose] ________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:192: in test_method_retrieve_metadata_with_all_params file = client.beta.files.retrieve_metadata( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:267: in retrieve_metadata return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.459839 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.955542 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestFiles.test_raw_response_retrieve_metadata[loose] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:200: in test_raw_response_retrieve_metadata response = client.beta.files.with_raw_response.retrieve_metadata( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:267: in retrieve_metadata return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.414787 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.851260 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error __________ TestFiles.test_streaming_response_retrieve_metadata[loose] __________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:211: in test_streaming_response_retrieve_metadata with client.beta.files.with_streaming_response.retrieve_metadata( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:267: in retrieve_metadata return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.395279 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.870428 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________________ TestFiles.test_method_upload[loose] ______________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:231: in test_method_upload file = client.beta.files.upload( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:320: in upload return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-48b9eee8-fe54-4822-a139-3c22b637e175', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.427837 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-48b9eee8-fe54-4822-a139-3c22b637e175', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.786796 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-48b9eee8-fe54-4822-a139-3c22b637e175', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestFiles.test_method_upload_with_all_params[loose] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:238: in test_method_upload_with_all_params file = client.beta.files.upload( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:320: in upload return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-dcf25d46-8dcb-45de-9d52-3224f856ac1e', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.495921 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-dcf25d46-8dcb-45de-9d52-3224f856ac1e', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.843142 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-dcf25d46-8dcb-45de-9d52-3224f856ac1e', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error __________________ TestFiles.test_raw_response_upload[loose] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:246: in test_raw_response_upload response = client.beta.files.with_raw_response.upload( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:320: in upload return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-8c826c78-2bea-4fc0-b660-ac14e597a814', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.391798 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-8c826c78-2bea-4fc0-b660-ac14e597a814', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.839083 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-8c826c78-2bea-4fc0-b660-ac14e597a814', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _______________ TestFiles.test_streaming_response_upload[loose] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:257: in test_streaming_response_upload with client.beta.files.with_streaming_response.upload( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:320: in upload return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-cfb67ee3-30b3-4529-8b4b-47220da9b5d8', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.468365 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-cfb67ee3-30b3-4529-8b4b-47220da9b5d8', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.768680 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-cfb67ee3-30b3-4529-8b4b-47220da9b5d8', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________________ TestModels.test_method_retrieve[loose] ____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:23: in test_method_retrieve model = client.beta.models.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:81: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id?beta=true in 0.499520 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id?beta=true in 0.751019 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________ TestModels.test_method_retrieve_with_all_params[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:30: in test_method_retrieve_with_all_params model = client.beta.models.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:81: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id?beta=true in 0.446826 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id?beta=true in 0.972816 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _________________ TestModels.test_raw_response_retrieve[loose] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:38: in test_raw_response_retrieve response = client.beta.models.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:81: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id?beta=true in 0.462663 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id?beta=true in 0.781249 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestModels.test_streaming_response_retrieve[loose] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:49: in test_streaming_response_retrieve with client.beta.models.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:81: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id?beta=true in 0.447339 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id?beta=true in 0.826076 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________________ TestModels.test_method_list[loose] ______________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:69: in test_method_list model = client.beta.models.list() ^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:134: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7ec84720>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models?beta=true in 0.479459 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7ec84720>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models?beta=true in 0.985909 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7ec84720>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestModels.test_method_list_with_all_params[loose] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:74: in test_method_list_with_all_params model = client.beta.models.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:134: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7ec84b40>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models?beta=true in 0.491104 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7ec84b40>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models?beta=true in 0.991970 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7ec84b40>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________________ TestModels.test_raw_response_list[loose] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:84: in test_raw_response_list response = client.beta.models.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:134: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7ec87a00>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models?beta=true in 0.461988 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7ec87a00>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models?beta=true in 0.978158 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7ec87a00>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ________________ TestModels.test_streaming_response_list[loose] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:93: in test_streaming_response_list with client.beta.models.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:134: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e11dfe0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models?beta=true in 0.499521 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e11dfe0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models?beta=true in 0.865107 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e11dfe0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________________ TestSkills.test_method_retrieve[loose] ____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:66: in test_method_retrieve skill = client.beta.skills.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:189: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.424696 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.774178 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________ TestSkills.test_method_retrieve_with_all_params[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:73: in test_method_retrieve_with_all_params skill = client.beta.skills.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:189: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.448611 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.880213 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _________________ TestSkills.test_raw_response_retrieve[loose] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:81: in test_raw_response_retrieve response = client.beta.skills.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:189: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.463665 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.784449 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestSkills.test_streaming_response_retrieve[loose] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:92: in test_streaming_response_retrieve with client.beta.skills.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:189: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.443064 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.984575 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________________ TestSkills.test_method_list[loose] ______________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:112: in test_method_list skill = client.beta.skills.list() ^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:252: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e975380>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills?beta=true in 0.410151 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e975380>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills?beta=true in 0.887061 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e975380>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestSkills.test_method_list_with_all_params[loose] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:117: in test_method_list_with_all_params skill = client.beta.skills.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:252: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {'limit': 0, 'page': 'page', 'source': 'source'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e11c720>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?limit=0&page=page&source=source DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills?beta=true in 0.402048 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {'limit': 0, 'page': 'page', 'source': 'source'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e11c720>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?limit=0&page=page&source=source DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills?beta=true in 0.831370 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {'limit': 0, 'page': 'page', 'source': 'source'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e11c720>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?limit=0&page=page&source=source DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________________ TestSkills.test_raw_response_list[loose] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:127: in test_raw_response_list response = client.beta.skills.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:252: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e11db10>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills?beta=true in 0.474758 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e11db10>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills?beta=true in 0.812831 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e11db10>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ________________ TestSkills.test_streaming_response_list[loose] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:136: in test_streaming_response_list with client.beta.skills.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:252: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7ec861f0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills?beta=true in 0.419002 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7ec861f0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills?beta=true in 0.800647 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7ec861f0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________________ TestSkills.test_method_delete[loose] _____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:147: in test_method_delete skill = client.beta.skills.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:315: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-b394d9cd-007d-43d7-8906-ddfd74221ffa', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.392895 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-b394d9cd-007d-43d7-8906-ddfd74221ffa', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.964363 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-b394d9cd-007d-43d7-8906-ddfd74221ffa', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestSkills.test_method_delete_with_all_params[loose] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:154: in test_method_delete_with_all_params skill = client.beta.skills.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:315: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-f3599698-e496-49cc-906a-54a372b33d0d', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.378499 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-f3599698-e496-49cc-906a-54a372b33d0d', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.987680 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-f3599698-e496-49cc-906a-54a372b33d0d', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error __________________ TestSkills.test_raw_response_delete[loose] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:162: in test_raw_response_delete response = client.beta.skills.with_raw_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:315: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-f9954aa2-c6d8-4c67-84b9-02f35dd2d0ee', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.419219 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-f9954aa2-c6d8-4c67-84b9-02f35dd2d0ee', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.973017 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-f9954aa2-c6d8-4c67-84b9-02f35dd2d0ee', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _______________ TestSkills.test_streaming_response_delete[loose] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:173: in test_streaming_response_delete with client.beta.skills.with_streaming_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:315: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-920e582c-e0af-47e4-a6ef-78eb4abe3487', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.386465 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-920e582c-e0af-47e4-a6ef-78eb4abe3487', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.799468 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-920e582c-e0af-47e4-a6ef-78eb4abe3487', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________________ TestBatches.test_method_create[loose] _____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:28: in test_method_create batch = client.messages.batches.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:80: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'files': None, 'idempotency_key': 'stainless-python-retry-d598bf44-eb14-4ee6-9f36-2b9a05e46b88', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.479482 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'files': None, 'idempotency_key': 'stainless-python-retry-d598bf44-eb14-4ee6-9f36-2b9a05e46b88', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.837689 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'files': None, 'idempotency_key': 'stainless-python-retry-d598bf44-eb14-4ee6-9f36-2b9a05e46b88', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _________________ TestBatches.test_raw_response_create[loose] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:49: in test_raw_response_create response = client.messages.batches.with_raw_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:80: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-f912922d-6859-4042-8f50-914d01a1b182', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.390120 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-f912922d-6859-4042-8f50-914d01a1b182', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.855266 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-f912922d-6859-4042-8f50-914d01a1b182', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestBatches.test_streaming_response_create[loose] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:74: in test_streaming_response_create with client.messages.batches.with_streaming_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:80: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-d54cb137-2110-4668-b186-3acdcb347cf6', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.469771 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-d54cb137-2110-4668-b186-3acdcb347cf6', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.977031 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-d54cb137-2110-4668-b186-3acdcb347cf6', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________________ TestBatches.test_method_retrieve[loose] ____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:101: in test_method_retrieve batch = client.messages.batches.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:122: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id'} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.440093 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id'} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.799747 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id'} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ________________ TestBatches.test_raw_response_retrieve[loose] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:108: in test_raw_response_retrieve response = client.messages.batches.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:122: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.424641 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.760645 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestBatches.test_streaming_response_retrieve[loose] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:119: in test_streaming_response_retrieve with client.messages.batches.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:122: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.414622 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.878744 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________________ TestBatches.test_method_list[loose] ______________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:139: in test_method_list batch = client.messages.batches.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:170: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'post_parser': ._parser at 0x7f8c7ec86c40>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.402058 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'post_parser': ._parser at 0x7f8c7ec86c40>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.947921 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'post_parser': ._parser at 0x7f8c7ec86c40>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestBatches.test_method_list_with_all_params[loose] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:144: in test_method_list_with_all_params batch = client.messages.batches.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:170: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'post_parser': ._parser at 0x7f8c7e7e4e00>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.416236 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'post_parser': ._parser at 0x7f8c7e7e4e00>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.926868 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'post_parser': ._parser at 0x7f8c7e7e4e00>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error __________________ TestBatches.test_raw_response_list[loose] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:153: in test_raw_response_list response = client.messages.batches.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:170: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e7e49e0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.442800 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e7e49e0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.870427 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e7e49e0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _______________ TestBatches.test_streaming_response_list[loose] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:162: in test_streaming_response_list with client.messages.batches.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:170: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e7e68d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.378758 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e7e68d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.882424 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e7e68d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________________ TestBatches.test_method_delete[loose] _____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:173: in test_method_delete batch = client.messages.batches.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:223: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'idempotency_key': 'stainless-python-retry-f0d0a52a-ba9f-44fb-90f1-9da884586749', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.441625 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'idempotency_key': 'stainless-python-retry-f0d0a52a-ba9f-44fb-90f1-9da884586749', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.754377 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'idempotency_key': 'stainless-python-retry-f0d0a52a-ba9f-44fb-90f1-9da884586749', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _________________ TestBatches.test_raw_response_delete[loose] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:180: in test_raw_response_delete response = client.messages.batches.with_raw_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:223: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-24a5988c-1206-40c5-9315-12b7891080bc', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.442800 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-24a5988c-1206-40c5-9315-12b7891080bc', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.985799 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-24a5988c-1206-40c5-9315-12b7891080bc', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestBatches.test_streaming_response_delete[loose] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:191: in test_streaming_response_delete with client.messages.batches.with_streaming_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:223: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-a5d609a7-b3c0-4120-b39f-62efacfcb0a5', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.384502 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-a5d609a7-b3c0-4120-b39f-62efacfcb0a5', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.824624 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-a5d609a7-b3c0-4120-b39f-62efacfcb0a5', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________________ TestBatches.test_method_cancel[loose] _____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:211: in test_method_cancel batch = client.messages.batches.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:270: in cancel return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'files': None, 'idempotency_key': 'stainless-python-retry-7ab174db-f699-4d18-8f15-d3fcb9829b09', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.431698 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'files': None, 'idempotency_key': 'stainless-python-retry-7ab174db-f699-4d18-8f15-d3fcb9829b09', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.812245 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'files': None, 'idempotency_key': 'stainless-python-retry-7ab174db-f699-4d18-8f15-d3fcb9829b09', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _________________ TestBatches.test_raw_response_cancel[loose] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:218: in test_raw_response_cancel response = client.messages.batches.with_raw_response.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:270: in cancel return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-314a5dde-2bd9-4c2b-8a6a-adab379c0536', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.468847 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-314a5dde-2bd9-4c2b-8a6a-adab379c0536', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.802459 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-314a5dde-2bd9-4c2b-8a6a-adab379c0536', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestBatches.test_streaming_response_cancel[loose] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:229: in test_streaming_response_cancel with client.messages.batches.with_streaming_response.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:270: in cancel return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-2f3a9559-5e3a-4656-8693-3394c7cab08a', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.468271 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-2f3a9559-5e3a-4656-8693-3394c7cab08a', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.937256 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-2f3a9559-5e3a-4656-8693-3394c7cab08a', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestCompletions.test_method_create_overload_1[loose] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:22: in test_method_create_overload_1 completion = client.completions.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:393: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-578cdcfb-3067-4afa-af34-51486e85ed26', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.442597 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-578cdcfb-3067-4afa-af34-51486e85ed26', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.762680 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-578cdcfb-3067-4afa-af34-51486e85ed26', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____ TestCompletions.test_method_create_with_all_params_overload_1[loose] _____ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:31: in test_method_create_with_all_params_overload_1 completion = client.completions.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:393: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-403c69ce-6833-479b-a500-0b73bfbc51eb', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': False, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.381403 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-403c69ce-6833-479b-a500-0b73bfbc51eb', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': False, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.865861 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-403c69ce-6833-479b-a500-0b73bfbc51eb', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': False, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error __________ TestCompletions.test_raw_response_create_overload_1[loose] __________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:47: in test_raw_response_create_overload_1 response = client.completions.with_raw_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:393: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-57f74ea8-42d6-4381-9aa9-38253047ed77', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.450178 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-57f74ea8-42d6-4381-9aa9-38253047ed77', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.965739 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-57f74ea8-42d6-4381-9aa9-38253047ed77', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _______ TestCompletions.test_streaming_response_create_overload_1[loose] _______ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:60: in test_streaming_response_create_overload_1 with client.completions.with_streaming_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:393: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-a6370fd2-06ab-4d49-939c-2a07391bc060', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.486113 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-a6370fd2-06ab-4d49-939c-2a07391bc060', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.835573 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-a6370fd2-06ab-4d49-939c-2a07391bc060', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestCompletions.test_method_create_overload_2[loose] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:75: in test_method_create_overload_2 completion_stream = client.completions.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:393: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-59a6c5a3-c2ba-4a01-82ad-dcb55156e7a0', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.401196 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-59a6c5a3-c2ba-4a01-82ad-dcb55156e7a0', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.842462 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-59a6c5a3-c2ba-4a01-82ad-dcb55156e7a0', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____ TestCompletions.test_method_create_with_all_params_overload_2[loose] _____ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:85: in test_method_create_with_all_params_overload_2 completion_stream = client.completions.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:393: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-0a9165e5-a632-4591-a00f-7c7f65fd69eb', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': True, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.457353 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-0a9165e5-a632-4591-a00f-7c7f65fd69eb', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': True, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.915955 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-0a9165e5-a632-4591-a00f-7c7f65fd69eb', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': True, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error __________ TestCompletions.test_raw_response_create_overload_2[loose] __________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:101: in test_raw_response_create_overload_2 response = client.completions.with_raw_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:393: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-31a886c9-96d8-4ad1-ba4e-8b6b2589d0b2', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.410838 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-31a886c9-96d8-4ad1-ba4e-8b6b2589d0b2', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.892302 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-31a886c9-96d8-4ad1-ba4e-8b6b2589d0b2', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _______ TestCompletions.test_streaming_response_create_overload_2[loose] _______ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:114: in test_streaming_response_create_overload_2 with client.completions.with_streaming_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:393: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-5e9ccf08-17b0-4c44-866e-97ccdae978de', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.442231 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-5e9ccf08-17b0-4c44-866e-97ccdae978de', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.793574 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-5e9ccf08-17b0-4c44-866e-97ccdae978de', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestMessages.test_method_create_overload_1[loose] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:26: in test_method_create_overload_1 message = client.messages.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:950: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-e29d672f-357f-40cb-9f6e-801bdf0ccdab', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.392984 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-e29d672f-357f-40cb-9f6e-801bdf0ccdab', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.969679 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-e29d672f-357f-40cb-9f6e-801bdf0ccdab', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______ TestMessages.test_method_create_with_all_params_overload_1[loose] _______ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:40: in test_method_create_with_all_params_overload_1 message = client.messages.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:950: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-abc8e38d-1e64-4bce-9e33-bdf47734715e', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': False, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.497874 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-abc8e38d-1e64-4bce-9e33-bdf47734715e', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': False, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.776058 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-abc8e38d-1e64-4bce-9e33-bdf47734715e', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': False, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________ TestMessages.test_raw_response_create_overload_1[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:115: in test_raw_response_create_overload_1 response = client.messages.with_raw_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:950: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-eb8bd946-c108-47eb-8a6b-8b18a34473df', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.386236 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-eb8bd946-c108-47eb-8a6b-8b18a34473df', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.917202 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-eb8bd946-c108-47eb-8a6b-8b18a34473df', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ________ TestMessages.test_streaming_response_create_overload_1[loose] _________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:133: in test_streaming_response_create_overload_1 with client.messages.with_streaming_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:950: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-85293d15-ec08-4b65-8e3c-c163d5d6cbed', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.409799 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-85293d15-ec08-4b65-8e3c-c163d5d6cbed', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.861323 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-85293d15-ec08-4b65-8e3c-c163d5d6cbed', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestMessages.test_method_create_overload_2[loose] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:153: in test_method_create_overload_2 message_stream = client.messages.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:950: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-c71eb479-ff7a-4184-a9f1-ef98eb16d930', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.496373 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-c71eb479-ff7a-4184-a9f1-ef98eb16d930', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.885385 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-c71eb479-ff7a-4184-a9f1-ef98eb16d930', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______ TestMessages.test_method_create_with_all_params_overload_2[loose] _______ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:168: in test_method_create_with_all_params_overload_2 message_stream = client.messages.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:950: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-d63eb811-bec4-4209-a215-d191089c5e16', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': True, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.397742 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-d63eb811-bec4-4209-a215-d191089c5e16', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': True, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.779649 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-d63eb811-bec4-4209-a215-d191089c5e16', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': True, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________ TestMessages.test_raw_response_create_overload_2[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:243: in test_raw_response_create_overload_2 response = client.messages.with_raw_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:950: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-f8760195-54d6-4370-bffb-ae16d232e79d', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.432506 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-f8760195-54d6-4370-bffb-ae16d232e79d', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.821633 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-f8760195-54d6-4370-bffb-ae16d232e79d', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ________ TestMessages.test_streaming_response_create_overload_2[loose] _________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:261: in test_streaming_response_create_overload_2 with client.messages.with_streaming_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:950: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-bfda3cb0-460f-4e3f-9eee-fbf47d09fd39', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.449954 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-bfda3cb0-460f-4e3f-9eee-fbf47d09fd39', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.845283 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-bfda3cb0-460f-4e3f-9eee-fbf47d09fd39', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestMessages.test_deprecated_model_warning[loose] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:284: in test_deprecated_model_warning client.messages.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:950: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-e82c1186-4d3c-4964-a18d-95b74cf11edd', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'role': 'user', 'content': 'Hello'}], 'model': 'claude-1.3'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.405460 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-e82c1186-4d3c-4964-a18d-95b74cf11edd', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'role': 'user', 'content': 'Hello'}], 'model': 'claude-1.3'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.852038 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-e82c1186-4d3c-4964-a18d-95b74cf11edd', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'role': 'user', 'content': 'Hello'}], 'model': 'claude-1.3'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _________________ TestMessages.test_method_count_tokens[loose] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:292: in test_method_count_tokens message = client.messages.count_tokens( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:1435: in count_tokens return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-51dbdcbb-733b-4ba9-872d-f3bab477554a', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/count_tokens in 0.413795 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-51dbdcbb-733b-4ba9-872d-f3bab477554a', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/count_tokens in 0.817746 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-51dbdcbb-733b-4ba9-872d-f3bab477554a', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _________ TestMessages.test_method_count_tokens_with_all_params[loose] _________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:305: in test_method_count_tokens_with_all_params message = client.messages.count_tokens( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:1435: in count_tokens return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-6f8d727f-dd12-4cca-836e-6587c002276a', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101', 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/count_tokens in 0.413916 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-6f8d727f-dd12-4cca-836e-6587c002276a', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101', 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/count_tokens in 0.837501 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-6f8d727f-dd12-4cca-836e-6587c002276a', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101', 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestMessages.test_raw_response_count_tokens[loose] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:372: in test_raw_response_count_tokens response = client.messages.with_raw_response.count_tokens( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:1435: in count_tokens return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-f85fa6a0-0384-4f0e-861a-1a981ac1e610', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/count_tokens in 0.439196 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-f85fa6a0-0384-4f0e-861a-1a981ac1e610', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/count_tokens in 0.946749 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-f85fa6a0-0384-4f0e-861a-1a981ac1e610', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________ TestMessages.test_streaming_response_count_tokens[loose] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:389: in test_streaming_response_count_tokens with client.messages.with_streaming_response.count_tokens( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:1435: in count_tokens return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-285c63ff-fc3c-4a56-8a31-7159338761db', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/count_tokens in 0.397728 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-285c63ff-fc3c-4a56-8a31-7159338761db', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/count_tokens in 0.844372 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-285c63ff-fc3c-4a56-8a31-7159338761db', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________________ TestModels.test_method_retrieve[loose] ____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:23: in test_method_retrieve model = client.models.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:81: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id in 0.494393 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id in 0.824591 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________ TestModels.test_method_retrieve_with_all_params[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:30: in test_method_retrieve_with_all_params model = client.models.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:81: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id in 0.468037 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id in 0.962730 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _________________ TestModels.test_raw_response_retrieve[loose] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:38: in test_raw_response_retrieve response = client.models.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:81: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id in 0.473194 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id in 0.847108 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestModels.test_streaming_response_retrieve[loose] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:49: in test_streaming_response_retrieve with client.models.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:81: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id in 0.399022 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id in 0.833914 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________________ TestModels.test_method_list[loose] ______________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:69: in test_method_list model = client.models.list() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:134: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7e87b740>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models in 0.419836 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7e87b740>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models in 0.779303 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7e87b740>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestModels.test_method_list_with_all_params[loose] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:74: in test_method_list_with_all_params model = client.models.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:134: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7e28c3b0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models in 0.432510 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7e28c3b0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models in 0.881420 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7e28c3b0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________________ TestModels.test_raw_response_list[loose] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:84: in test_raw_response_list response = client.models.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:134: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e28c300>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models in 0.444439 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e28c300>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models in 0.817481 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e28c300>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ________________ TestModels.test_streaming_response_list[loose] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:93: in test_streaming_response_list with client.models.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:134: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e28e1f0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models in 0.430249 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e28e1f0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models in 0.941370 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e28e1f0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________________ TestBatches.test_method_retrieve[strict] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:240: in test_method_retrieve batch = client.beta.messages.batches.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:152: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.450101 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.771651 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________ TestBatches.test_method_retrieve_with_all_params[strict] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:247: in test_method_retrieve_with_all_params batch = client.beta.messages.batches.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:152: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.450336 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.844710 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ________________ TestBatches.test_raw_response_retrieve[strict] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:255: in test_raw_response_retrieve response = client.beta.messages.batches.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:152: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.439849 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.973538 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestBatches.test_streaming_response_retrieve[strict] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:266: in test_streaming_response_retrieve with client.beta.messages.batches.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:152: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.475524 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.763498 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________________ TestBatches.test_method_list[strict] _____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:286: in test_method_list batch = client.beta.messages.batches.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:214: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7e28ce00>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches?beta=true in 0.498494 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7e28ce00>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches?beta=true in 0.777913 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7e28ce00>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestBatches.test_method_list_with_all_params[strict] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:291: in test_method_list_with_all_params batch = client.beta.messages.batches.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:214: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7e87a560>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches?beta=true in 0.384305 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7e87a560>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches?beta=true in 0.792994 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7e87a560>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error __________________ TestBatches.test_raw_response_list[strict] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:301: in test_raw_response_list response = client.beta.messages.batches.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:214: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e87a2a0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches?beta=true in 0.406374 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e87a2a0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches?beta=true in 0.959097 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e87a2a0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _______________ TestBatches.test_streaming_response_list[strict] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:310: in test_streaming_response_list with client.beta.messages.batches.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:214: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e87af00>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches?beta=true in 0.404187 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e87af00>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches?beta=true in 0.869620 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e87af00>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________________ TestBatches.test_method_delete[strict] ____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:321: in test_method_delete batch = client.beta.messages.batches.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:281: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-5d72d24e-ffa1-4053-ad22-288bcb41cabc', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.461238 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-5d72d24e-ffa1-4053-ad22-288bcb41cabc', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.762887 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-5d72d24e-ffa1-4053-ad22-288bcb41cabc', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________ TestBatches.test_method_delete_with_all_params[strict] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:328: in test_method_delete_with_all_params batch = client.beta.messages.batches.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:281: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-00d392ea-17ec-4103-951a-bf55fea387ca', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.389839 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-00d392ea-17ec-4103-951a-bf55fea387ca', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.809371 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-00d392ea-17ec-4103-951a-bf55fea387ca', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _________________ TestBatches.test_raw_response_delete[strict] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:336: in test_raw_response_delete response = client.beta.messages.batches.with_raw_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:281: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-d7cdaadf-b60f-4bb4-be5c-07ac642d6853', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.389697 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-d7cdaadf-b60f-4bb4-be5c-07ac642d6853', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.771158 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-d7cdaadf-b60f-4bb4-be5c-07ac642d6853', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestBatches.test_streaming_response_delete[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:347: in test_streaming_response_delete with client.beta.messages.batches.with_streaming_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:281: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-5e56a2d4-cb42-4a5c-8116-2f5962734600', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.484823 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-5e56a2d4-cb42-4a5c-8116-2f5962734600', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.901763 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-5e56a2d4-cb42-4a5c-8116-2f5962734600', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________________ TestBatches.test_method_cancel[strict] ____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:367: in test_method_cancel batch = client.beta.messages.batches.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:342: in cancel return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-6ef4deda-6afb-4376-8a2e-8a5a9019047e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.395352 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-6ef4deda-6afb-4376-8a2e-8a5a9019047e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.769150 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-6ef4deda-6afb-4376-8a2e-8a5a9019047e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________ TestBatches.test_method_cancel_with_all_params[strict] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:374: in test_method_cancel_with_all_params batch = client.beta.messages.batches.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:342: in cancel return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-a99242d0-ffb7-4c37-92ff-be27ea54217e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.458043 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-a99242d0-ffb7-4c37-92ff-be27ea54217e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.952258 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-a99242d0-ffb7-4c37-92ff-be27ea54217e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _________________ TestBatches.test_raw_response_cancel[strict] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:382: in test_raw_response_cancel response = client.beta.messages.batches.with_raw_response.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:342: in cancel return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-cfa07552-4b91-4bd0-a726-c19ba001247e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.445924 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-cfa07552-4b91-4bd0-a726-c19ba001247e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.885919 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-cfa07552-4b91-4bd0-a726-c19ba001247e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestBatches.test_streaming_response_cancel[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:393: in test_streaming_response_cancel with client.beta.messages.batches.with_streaming_response.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:342: in cancel return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-c5043644-bf65-4f07-91cc-88227d993a0e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.478362 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-c5043644-bf65-4f07-91cc-88227d993a0e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.753455 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-c5043644-bf65-4f07-91cc-88227d993a0e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error __________________ TestVersions.test_method_retrieve[strict] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:80: in test_method_retrieve version = client.beta.skills.versions.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:180: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.407023 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.948771 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error __________ TestVersions.test_method_retrieve_with_all_params[strict] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:88: in test_method_retrieve_with_all_params version = client.beta.skills.versions.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:180: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.422426 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.833110 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _______________ TestVersions.test_raw_response_retrieve[strict] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:97: in test_raw_response_retrieve response = client.beta.skills.versions.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:180: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.455331 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.795401 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________ TestVersions.test_streaming_response_retrieve[strict] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:109: in test_streaming_response_retrieve with client.beta.skills.versions.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:180: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.464959 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.988221 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________________ TestVersions.test_method_list[strict] _____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:137: in test_method_list version = client.beta.skills.versions.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:239: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e224ca0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.482269 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e224ca0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.970162 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e224ca0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________ TestVersions.test_method_list_with_all_params[strict] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:144: in test_method_list_with_all_params version = client.beta.skills.versions.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:239: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {'limit': 0, 'page': 'page'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e226140>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?limit=0&page=page DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.423846 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {'limit': 0, 'page': 'page'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e226140>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?limit=0&page=page DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.932556 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {'limit': 0, 'page': 'page'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e226140>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?limit=0&page=page DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _________________ TestVersions.test_raw_response_list[strict] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:154: in test_raw_response_list response = client.beta.skills.versions.with_raw_response.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:239: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e224d50>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.493051 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e224d50>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.874379 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e224d50>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestVersions.test_streaming_response_list[strict] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:165: in test_streaming_response_list with client.beta.skills.versions.with_streaming_response.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:239: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e227b60>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.497847 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e227b60>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.819769 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e227b60>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________________ TestVersions.test_method_delete[strict] ____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:185: in test_method_delete version = client.beta.skills.versions.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:308: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-0096dcda-37bc-485c-a6b0-9c94da2d6bf7', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.414483 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-0096dcda-37bc-485c-a6b0-9c94da2d6bf7', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.983308 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-0096dcda-37bc-485c-a6b0-9c94da2d6bf7', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________ TestVersions.test_method_delete_with_all_params[strict] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:193: in test_method_delete_with_all_params version = client.beta.skills.versions.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:308: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-109ab14f-ad12-4b96-8ae6-93ab4afd92ef', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.450092 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-109ab14f-ad12-4b96-8ae6-93ab4afd92ef', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.839395 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-109ab14f-ad12-4b96-8ae6-93ab4afd92ef', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ________________ TestVersions.test_raw_response_delete[strict] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:202: in test_raw_response_delete response = client.beta.skills.versions.with_raw_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:308: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-a9193ff4-a59f-4bbb-829e-eb707d11e1db', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.485539 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-a9193ff4-a59f-4bbb-829e-eb707d11e1db', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.808515 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-a9193ff4-a59f-4bbb-829e-eb707d11e1db', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestVersions.test_streaming_response_delete[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:214: in test_streaming_response_delete with client.beta.skills.versions.with_streaming_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:308: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-07b7dbdf-ccb8-4575-8600-52717ac9fb65', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.457621 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-07b7dbdf-ccb8-4575-8600-52717ac9fb65', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.997852 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-07b7dbdf-ccb8-4575-8600-52717ac9fb65', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________________ TestFiles.test_method_list[strict] ______________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:33: in test_method_list file = client.beta.files.list() ^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:107: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7e226e50>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.416871 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7e226e50>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.939235 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7e226e50>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestFiles.test_method_list_with_all_params[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:38: in test_method_list_with_all_params file = client.beta.files.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:107: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7e879010>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.498106 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7e879010>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.843981 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7e879010>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________________ TestFiles.test_raw_response_list[strict] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:48: in test_raw_response_list response = client.beta.files.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:107: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7de3cca0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.391777 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7de3cca0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.877852 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7de3cca0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ________________ TestFiles.test_streaming_response_list[strict] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:57: in test_streaming_response_list with client.beta.files.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:107: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7de3d220>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.422243 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7de3d220>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.920866 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7de3d220>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________________ TestFiles.test_method_delete[strict] _____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:68: in test_method_delete file = client.beta.files.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:168: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-113111b2-d31c-45e7-8591-02de64bb9999', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.404584 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-113111b2-d31c-45e7-8591-02de64bb9999', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.763279 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-113111b2-d31c-45e7-8591-02de64bb9999', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestFiles.test_method_delete_with_all_params[strict] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:75: in test_method_delete_with_all_params file = client.beta.files.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:168: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-af579680-10b1-43f6-b0a0-da3d99ed56af', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.412155 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-af579680-10b1-43f6-b0a0-da3d99ed56af', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.980682 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-af579680-10b1-43f6-b0a0-da3d99ed56af', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error __________________ TestFiles.test_raw_response_delete[strict] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:83: in test_raw_response_delete response = client.beta.files.with_raw_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:168: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-48691ef2-2235-4d7c-afaf-23c6fa427f9e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.406588 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-48691ef2-2235-4d7c-afaf-23c6fa427f9e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.875575 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-48691ef2-2235-4d7c-afaf-23c6fa427f9e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _______________ TestFiles.test_streaming_response_delete[strict] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:94: in test_streaming_response_delete with client.beta.files.with_streaming_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:168: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-ad6189ff-e0cc-4628-ba85-745f6d32fb85', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.485240 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-ad6189ff-e0cc-4628-ba85-745f6d32fb85', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.877935 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-ad6189ff-e0cc-4628-ba85-745f6d32fb85', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _______________ TestFiles.test_method_retrieve_metadata[strict] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:185: in test_method_retrieve_metadata file = client.beta.files.retrieve_metadata( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:267: in retrieve_metadata return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.461793 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.924210 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _______ TestFiles.test_method_retrieve_metadata_with_all_params[strict] ________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:192: in test_method_retrieve_metadata_with_all_params file = client.beta.files.retrieve_metadata( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:267: in retrieve_metadata return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.460362 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.950774 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________ TestFiles.test_raw_response_retrieve_metadata[strict] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:200: in test_raw_response_retrieve_metadata response = client.beta.files.with_raw_response.retrieve_metadata( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:267: in retrieve_metadata return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.426059 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.783116 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _________ TestFiles.test_streaming_response_retrieve_metadata[strict] __________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:211: in test_streaming_response_retrieve_metadata with client.beta.files.with_streaming_response.retrieve_metadata( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:267: in retrieve_metadata return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.400679 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files/file_id?beta=true in 0.972888 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________________ TestFiles.test_method_upload[strict] _____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:231: in test_method_upload file = client.beta.files.upload( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:320: in upload return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-2c460a18-fbb2-4289-9dfa-5021e48f1fe6', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.412611 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-2c460a18-fbb2-4289-9dfa-5021e48f1fe6', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.988061 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-2c460a18-fbb2-4289-9dfa-5021e48f1fe6', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestFiles.test_method_upload_with_all_params[strict] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:238: in test_method_upload_with_all_params file = client.beta.files.upload( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:320: in upload return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-7941fc64-3c50-46c6-925a-f8ffad367748', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.481559 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-7941fc64-3c50-46c6-925a-f8ffad367748', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.884821 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-7941fc64-3c50-46c6-925a-f8ffad367748', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error __________________ TestFiles.test_raw_response_upload[strict] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:246: in test_raw_response_upload response = client.beta.files.with_raw_response.upload( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:320: in upload return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-38d46640-0630-4fcd-a91b-3560b2cd6737', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.420711 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-38d46640-0630-4fcd-a91b-3560b2cd6737', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.964903 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-38d46640-0630-4fcd-a91b-3560b2cd6737', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _______________ TestFiles.test_streaming_response_upload[strict] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:257: in test_streaming_response_upload with client.beta.files.with_streaming_response.upload( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:320: in upload return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-8a255e87-eaa4-4f3a-bafd-15b4e4575540', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.463967 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-8a255e87-eaa4-4f3a-bafd-15b4e4575540', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/files?beta=true in 0.911662 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-8a255e87-eaa4-4f3a-bafd-15b4e4575540', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________________ TestModels.test_method_retrieve[strict] ____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:23: in test_method_retrieve model = client.beta.models.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:81: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id?beta=true in 0.427374 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id?beta=true in 0.978695 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________ TestModels.test_method_retrieve_with_all_params[strict] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:30: in test_method_retrieve_with_all_params model = client.beta.models.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:81: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id?beta=true in 0.403133 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id?beta=true in 0.778283 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ________________ TestModels.test_raw_response_retrieve[strict] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:38: in test_raw_response_retrieve response = client.beta.models.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:81: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id?beta=true in 0.450361 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id?beta=true in 0.780084 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestModels.test_streaming_response_retrieve[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:49: in test_streaming_response_retrieve with client.beta.models.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:81: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id?beta=true in 0.397300 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id?beta=true in 0.779561 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________________ TestModels.test_method_list[strict] ______________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:69: in test_method_list model = client.beta.models.list() ^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:134: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7de3d170>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models?beta=true in 0.436906 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7de3d170>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models?beta=true in 0.825415 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7de3d170>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestModels.test_method_list_with_all_params[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:74: in test_method_list_with_all_params model = client.beta.models.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:134: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7de3e980>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models?beta=true in 0.436486 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7de3e980>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models?beta=true in 0.878670 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7de3e980>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error __________________ TestModels.test_raw_response_list[strict] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:84: in test_raw_response_list response = client.beta.models.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:134: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e225220>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models?beta=true in 0.450732 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e225220>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models?beta=true in 0.950771 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e225220>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _______________ TestModels.test_streaming_response_list[strict] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:93: in test_streaming_response_list with client.beta.models.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:134: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e2240f0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models?beta=true in 0.482976 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e2240f0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models?beta=true in 0.761208 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e2240f0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________________ TestSkills.test_method_retrieve[strict] ____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:66: in test_method_retrieve skill = client.beta.skills.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:189: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.404592 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.987083 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________ TestSkills.test_method_retrieve_with_all_params[strict] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:73: in test_method_retrieve_with_all_params skill = client.beta.skills.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:189: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.383393 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.864572 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ________________ TestSkills.test_raw_response_retrieve[strict] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:81: in test_raw_response_retrieve response = client.beta.skills.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:189: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.441109 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.857607 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestSkills.test_streaming_response_retrieve[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:92: in test_streaming_response_retrieve with client.beta.skills.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:189: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.454467 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.950815 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________________ TestSkills.test_method_list[strict] ______________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:112: in test_method_list skill = client.beta.skills.list() ^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:252: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e35acf0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills?beta=true in 0.438252 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e35acf0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills?beta=true in 0.886089 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e35acf0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestSkills.test_method_list_with_all_params[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:117: in test_method_list_with_all_params skill = client.beta.skills.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:252: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {'limit': 0, 'page': 'page', 'source': 'source'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e358a90>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?limit=0&page=page&source=source DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills?beta=true in 0.417841 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {'limit': 0, 'page': 'page', 'source': 'source'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e358a90>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?limit=0&page=page&source=source DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills?beta=true in 0.860435 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {'limit': 0, 'page': 'page', 'source': 'source'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e358a90>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?limit=0&page=page&source=source DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error __________________ TestSkills.test_raw_response_list[strict] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:127: in test_raw_response_list response = client.beta.skills.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:252: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e225bc0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills?beta=true in 0.455453 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e225bc0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills?beta=true in 0.777500 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e225bc0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _______________ TestSkills.test_streaming_response_list[strict] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:136: in test_streaming_response_list with client.beta.skills.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:252: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e28db10>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills?beta=true in 0.428636 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e28db10>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills?beta=true in 0.925660 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e28db10>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________________ TestSkills.test_method_delete[strict] _____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:147: in test_method_delete skill = client.beta.skills.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:315: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-512f6329-fece-4d1b-b3fa-46a9718bfc8c', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.391439 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-512f6329-fece-4d1b-b3fa-46a9718bfc8c', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.828789 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-512f6329-fece-4d1b-b3fa-46a9718bfc8c', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________ TestSkills.test_method_delete_with_all_params[strict] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:154: in test_method_delete_with_all_params skill = client.beta.skills.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:315: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-f118970f-8525-46ae-b3ab-7061f193d6e1', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.470646 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-f118970f-8525-46ae-b3ab-7061f193d6e1', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.914671 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-f118970f-8525-46ae-b3ab-7061f193d6e1', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _________________ TestSkills.test_raw_response_delete[strict] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:162: in test_raw_response_delete response = client.beta.skills.with_raw_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:315: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-bae24a0e-8b71-451a-9c8c-87eb2e5038ca', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.416094 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-bae24a0e-8b71-451a-9c8c-87eb2e5038ca', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.956339 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-bae24a0e-8b71-451a-9c8c-87eb2e5038ca', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestSkills.test_streaming_response_delete[strict] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:173: in test_streaming_response_delete with client.beta.skills.with_streaming_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:315: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-3040c16a-d245-4a86-a3b8-dac12ac7081a', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.466273 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-3040c16a-d245-4a86-a3b8-dac12ac7081a', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/skills/skill_id?beta=true in 0.788531 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-3040c16a-d245-4a86-a3b8-dac12ac7081a', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________________ TestBatches.test_method_create[strict] ____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:28: in test_method_create batch = client.messages.batches.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:80: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'files': None, 'idempotency_key': 'stainless-python-retry-3e03ecdd-fbdd-48c1-af8e-daf0a8455cec', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.484729 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'files': None, 'idempotency_key': 'stainless-python-retry-3e03ecdd-fbdd-48c1-af8e-daf0a8455cec', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.882244 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'files': None, 'idempotency_key': 'stainless-python-retry-3e03ecdd-fbdd-48c1-af8e-daf0a8455cec', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _________________ TestBatches.test_raw_response_create[strict] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:49: in test_raw_response_create response = client.messages.batches.with_raw_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:80: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-1c623c6d-fc4f-4e3a-8b44-624782e9a517', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.478711 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-1c623c6d-fc4f-4e3a-8b44-624782e9a517', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.816496 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-1c623c6d-fc4f-4e3a-8b44-624782e9a517', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestBatches.test_streaming_response_create[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:74: in test_streaming_response_create with client.messages.batches.with_streaming_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:80: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-d5efc4c5-8fd9-4711-8654-1055c16d0842', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.490119 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-d5efc4c5-8fd9-4711-8654-1055c16d0842', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.816919 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-d5efc4c5-8fd9-4711-8654-1055c16d0842', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________________ TestBatches.test_method_retrieve[strict] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:101: in test_method_retrieve batch = client.messages.batches.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:122: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id'} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.423816 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id'} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.897521 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id'} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ________________ TestBatches.test_raw_response_retrieve[strict] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:108: in test_raw_response_retrieve response = client.messages.batches.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:122: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.419638 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.929478 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestBatches.test_streaming_response_retrieve[strict] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:119: in test_streaming_response_retrieve with client.messages.batches.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:122: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.393007 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.862678 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________________ TestBatches.test_method_list[strict] _____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:139: in test_method_list batch = client.messages.batches.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:170: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'post_parser': ._parser at 0x7f8c7e7047d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.406613 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'post_parser': ._parser at 0x7f8c7e7047d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.770016 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'post_parser': ._parser at 0x7f8c7e7047d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestBatches.test_method_list_with_all_params[strict] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:144: in test_method_list_with_all_params batch = client.messages.batches.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:170: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'post_parser': ._parser at 0x7f8c7e358300>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.380045 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'post_parser': ._parser at 0x7f8c7e358300>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.784558 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'post_parser': ._parser at 0x7f8c7e358300>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error __________________ TestBatches.test_raw_response_list[strict] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:153: in test_raw_response_list response = client.messages.batches.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:170: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e35bcc0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.459991 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e35bcc0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.827070 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e35bcc0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _______________ TestBatches.test_streaming_response_list[strict] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:162: in test_streaming_response_list with client.messages.batches.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:170: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7de3c250>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.495672 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7de3c250>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches in 0.969899 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7de3c250>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________________ TestBatches.test_method_delete[strict] ____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:173: in test_method_delete batch = client.messages.batches.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:223: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'idempotency_key': 'stainless-python-retry-6e2174b8-e182-4705-93d1-8b1276c33a20', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.394697 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'idempotency_key': 'stainless-python-retry-6e2174b8-e182-4705-93d1-8b1276c33a20', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.798595 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'idempotency_key': 'stainless-python-retry-6e2174b8-e182-4705-93d1-8b1276c33a20', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _________________ TestBatches.test_raw_response_delete[strict] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:180: in test_raw_response_delete response = client.messages.batches.with_raw_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:223: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-af4cc072-1546-4a81-accc-80993872da8c', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.398380 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-af4cc072-1546-4a81-accc-80993872da8c', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.903821 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-af4cc072-1546-4a81-accc-80993872da8c', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestBatches.test_streaming_response_delete[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:191: in test_streaming_response_delete with client.messages.batches.with_streaming_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:223: in delete return self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1437: in delete return self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-e06a3971-d410-4efb-a645-91ae3c97e2aa', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.419204 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-e06a3971-d410-4efb-a645-91ae3c97e2aa', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id in 0.787319 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-e06a3971-d410-4efb-a645-91ae3c97e2aa', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________________ TestBatches.test_method_cancel[strict] ____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:211: in test_method_cancel batch = client.messages.batches.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:270: in cancel return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'files': None, 'idempotency_key': 'stainless-python-retry-22604df0-a635-4026-9cb9-9d7acb18e8d5', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.451058 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'files': None, 'idempotency_key': 'stainless-python-retry-22604df0-a635-4026-9cb9-9d7acb18e8d5', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.863902 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'files': None, 'idempotency_key': 'stainless-python-retry-22604df0-a635-4026-9cb9-9d7acb18e8d5', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _________________ TestBatches.test_raw_response_cancel[strict] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:218: in test_raw_response_cancel response = client.messages.batches.with_raw_response.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:270: in cancel return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-e7616d84-c366-41d5-98a3-39c7590759cf', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.394646 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-e7616d84-c366-41d5-98a3-39c7590759cf', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.975984 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-e7616d84-c366-41d5-98a3-39c7590759cf', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestBatches.test_streaming_response_cancel[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:229: in test_streaming_response_cancel with client.messages.batches.with_streaming_response.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:270: in cancel return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-772ba96b-9379-427e-90f4-2d083b11cbb4', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.466231 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-772ba96b-9379-427e-90f4-2d083b11cbb4', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.948941 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-772ba96b-9379-427e-90f4-2d083b11cbb4', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________ TestCompletions.test_method_create_overload_1[strict] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:22: in test_method_create_overload_1 completion = client.completions.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:393: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-77f3feb5-3a2b-4ad8-a774-ffb7e44fc179', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.421057 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-77f3feb5-3a2b-4ad8-a774-ffb7e44fc179', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.964948 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-77f3feb5-3a2b-4ad8-a774-ffb7e44fc179', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____ TestCompletions.test_method_create_with_all_params_overload_1[strict] _____ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:31: in test_method_create_with_all_params_overload_1 completion = client.completions.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:393: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-43b96152-b6c0-4086-b88b-f8425b62e7c8', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': False, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.414347 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-43b96152-b6c0-4086-b88b-f8425b62e7c8', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': False, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.897919 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-43b96152-b6c0-4086-b88b-f8425b62e7c8', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': False, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _________ TestCompletions.test_raw_response_create_overload_1[strict] __________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:47: in test_raw_response_create_overload_1 response = client.completions.with_raw_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:393: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-6e885651-3f21-4e79-9bc7-510026ba637d', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.379251 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-6e885651-3f21-4e79-9bc7-510026ba637d', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.909688 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-6e885651-3f21-4e79-9bc7-510026ba637d', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______ TestCompletions.test_streaming_response_create_overload_1[strict] _______ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:60: in test_streaming_response_create_overload_1 with client.completions.with_streaming_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:393: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-62630eca-5d74-4bf7-b6cb-c5d18e46143a', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.485909 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-62630eca-5d74-4bf7-b6cb-c5d18e46143a', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.799721 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-62630eca-5d74-4bf7-b6cb-c5d18e46143a', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____________ TestCompletions.test_method_create_overload_2[strict] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:75: in test_method_create_overload_2 completion_stream = client.completions.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:393: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-8f5b261a-20fe-4ead-b757-ff6901a3d7b9', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.386666 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-8f5b261a-20fe-4ead-b757-ff6901a3d7b9', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.903900 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-8f5b261a-20fe-4ead-b757-ff6901a3d7b9', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ____ TestCompletions.test_method_create_with_all_params_overload_2[strict] _____ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:85: in test_method_create_with_all_params_overload_2 completion_stream = client.completions.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:393: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-242b7cf8-e6c6-446b-b090-36983657a961', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': True, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.403929 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-242b7cf8-e6c6-446b-b090-36983657a961', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': True, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.910490 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-242b7cf8-e6c6-446b-b090-36983657a961', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': True, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _________ TestCompletions.test_raw_response_create_overload_2[strict] __________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:101: in test_raw_response_create_overload_2 response = client.completions.with_raw_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:393: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-0f524214-cf93-49a3-9120-dc64aa330063', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.398959 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-0f524214-cf93-49a3-9120-dc64aa330063', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.799799 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-0f524214-cf93-49a3-9120-dc64aa330063', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______ TestCompletions.test_streaming_response_create_overload_2[strict] _______ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:114: in test_streaming_response_create_overload_2 with client.completions.with_streaming_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:393: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-4abfca3c-c073-4c8b-bfb4-52d2df6d6cc4', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.410376 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-4abfca3c-c073-4c8b-bfb4-52d2df6d6cc4', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/complete in 0.919376 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-4abfca3c-c073-4c8b-bfb4-52d2df6d6cc4', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestMessages.test_method_create_overload_1[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:26: in test_method_create_overload_1 message = client.messages.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:950: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-17b8f75f-8be6-4843-b811-6b7ef867db07', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.379514 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-17b8f75f-8be6-4843-b811-6b7ef867db07', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.986702 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-17b8f75f-8be6-4843-b811-6b7ef867db07', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______ TestMessages.test_method_create_with_all_params_overload_1[strict] ______ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:40: in test_method_create_with_all_params_overload_1 message = client.messages.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:950: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-b1dbeab9-674c-4e02-854e-9bbec095ed66', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': False, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.417347 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-b1dbeab9-674c-4e02-854e-9bbec095ed66', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': False, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.860914 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-b1dbeab9-674c-4e02-854e-9bbec095ed66', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': False, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________ TestMessages.test_raw_response_create_overload_1[strict] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:115: in test_raw_response_create_overload_1 response = client.messages.with_raw_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:950: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-17921d6c-52ed-4a0d-b6aa-21a6b4392d66', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.458052 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-17921d6c-52ed-4a0d-b6aa-21a6b4392d66', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.843279 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-17921d6c-52ed-4a0d-b6aa-21a6b4392d66', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ________ TestMessages.test_streaming_response_create_overload_1[strict] ________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:133: in test_streaming_response_create_overload_1 with client.messages.with_streaming_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:950: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-61d09261-7b85-4585-aaea-e2df3b601008', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.470338 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-61d09261-7b85-4585-aaea-e2df3b601008', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.826059 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-61d09261-7b85-4585-aaea-e2df3b601008', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestMessages.test_method_create_overload_2[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:153: in test_method_create_overload_2 message_stream = client.messages.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:950: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-29456b7d-ef31-4745-95c9-4a4ca64a73d1', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.460354 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-29456b7d-ef31-4745-95c9-4a4ca64a73d1', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.813175 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-29456b7d-ef31-4745-95c9-4a4ca64a73d1', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______ TestMessages.test_method_create_with_all_params_overload_2[strict] ______ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:168: in test_method_create_with_all_params_overload_2 message_stream = client.messages.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:950: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-ea897457-59f1-4922-bb9e-509b77592787', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': True, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.442535 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-ea897457-59f1-4922-bb9e-509b77592787', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': True, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.879940 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-ea897457-59f1-4922-bb9e-509b77592787', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': True, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________ TestMessages.test_raw_response_create_overload_2[strict] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:243: in test_raw_response_create_overload_2 response = client.messages.with_raw_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:950: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-1ffb536c-b18a-4c15-9ecc-b4f190195e0e', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.493581 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-1ffb536c-b18a-4c15-9ecc-b4f190195e0e', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.892694 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-1ffb536c-b18a-4c15-9ecc-b4f190195e0e', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ________ TestMessages.test_streaming_response_create_overload_2[strict] ________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:261: in test_streaming_response_create_overload_2 with client.messages.with_streaming_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:950: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-c075b38c-89a8-4a9c-b67a-3f1fc9cb1edf', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.472982 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-c075b38c-89a8-4a9c-b67a-3f1fc9cb1edf', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.994556 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-c075b38c-89a8-4a9c-b67a-3f1fc9cb1edf', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ______________ TestMessages.test_deprecated_model_warning[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:284: in test_deprecated_model_warning client.messages.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_utils/_utils.py:282: in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:950: in create return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-95065e3d-d5aa-4ea5-a98c-1088d179ea91', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'role': 'user', 'content': 'Hello'}], 'model': 'claude-1.3'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.418339 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-95065e3d-d5aa-4ea5-a98c-1088d179ea91', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'role': 'user', 'content': 'Hello'}], 'model': 'claude-1.3'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages in 0.781898 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-95065e3d-d5aa-4ea5-a98c-1088d179ea91', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'role': 'user', 'content': 'Hello'}], 'model': 'claude-1.3'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ________________ TestMessages.test_method_count_tokens[strict] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:292: in test_method_count_tokens message = client.messages.count_tokens( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:1435: in count_tokens return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-dc2240e3-711c-4bfa-ba7b-228b6f46e99a', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/count_tokens in 0.483062 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-dc2240e3-711c-4bfa-ba7b-228b6f46e99a', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/count_tokens in 0.853881 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-dc2240e3-711c-4bfa-ba7b-228b6f46e99a', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ________ TestMessages.test_method_count_tokens_with_all_params[strict] _________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:305: in test_method_count_tokens_with_all_params message = client.messages.count_tokens( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:1435: in count_tokens return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-910b9cec-07a1-4666-90fc-cd504aaeeb0c', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101', 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/count_tokens in 0.466404 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-910b9cec-07a1-4666-90fc-cd504aaeeb0c', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101', 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/count_tokens in 0.887731 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-910b9cec-07a1-4666-90fc-cd504aaeeb0c', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101', 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}]}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestMessages.test_raw_response_count_tokens[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:372: in test_raw_response_count_tokens response = client.messages.with_raw_response.count_tokens( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:1435: in count_tokens return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-62cf51b3-75a8-4366-ac7d-02f5b72bcbb0', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/count_tokens in 0.402837 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-62cf51b3-75a8-4366-ac7d-02f5b72bcbb0', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/count_tokens in 0.896691 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-62cf51b3-75a8-4366-ac7d-02f5b72bcbb0', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error __________ TestMessages.test_streaming_response_count_tokens[strict] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:389: in test_streaming_response_count_tokens with client.messages.with_streaming_response.count_tokens( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:1435: in count_tokens return self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1364: in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-3978edde-8297-4bc8-bd09-afc820094f52', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/count_tokens in 0.379113 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-3978edde-8297-4bc8-bd09-afc820094f52', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/messages/count_tokens in 0.808225 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-3978edde-8297-4bc8-bd09-afc820094f52', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________________ TestModels.test_method_retrieve[strict] ____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:23: in test_method_retrieve model = client.models.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:81: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id in 0.443345 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id in 0.837119 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ___________ TestModels.test_method_retrieve_with_all_params[strict] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:30: in test_method_retrieve_with_all_params model = client.models.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:81: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id in 0.453664 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id in 0.886267 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error ________________ TestModels.test_raw_response_retrieve[strict] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:38: in test_raw_response_retrieve response = client.models.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:81: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id in 0.390057 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id in 0.889849 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestModels.test_streaming_response_retrieve[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:49: in test_streaming_response_retrieve with client.models.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:81: in retrieve return self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1295: in get return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id in 0.416127 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models/model_id in 0.894794 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________________ TestModels.test_method_list[strict] ______________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:69: in test_method_list model = client.models.list() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:134: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7e706980>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models in 0.426437 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7e706980>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models in 0.938746 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7e706980>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _____________ TestModels.test_method_list_with_all_params[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:74: in test_method_list_with_all_params model = client.models.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:134: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7e7af3d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models in 0.427164 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7e7af3d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models in 0.906152 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7e7af3d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error __________________ TestModels.test_raw_response_list[strict] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:84: in test_raw_response_list response = client.models.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:387: in wrapped return cast(LegacyAPIResponse[R], func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:134: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e7ad850>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models in 0.439652 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e7ad850>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models in 0.908663 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e7ad850>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _______________ TestModels.test_streaming_response_list[strict] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:250: in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:256: in handle_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py:236: in handle_request response = connection.handle_request( /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:101: in handle_request raise exc /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:78: in handle_request stream = self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_sync/connection.py:124: in _connect stream = self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/sync.py:207: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1072: in request response = self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:914: in send response = self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:942: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:979: in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1014: in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:249: in handle_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:93: in test_streaming_response_list with client.models.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:650: in __enter__ self.__response = self._request_func() ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:134: in list return self._get_api_list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1450: in get_api_list return self._request_api_list(model, page, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1249: in _request_api_list return self.request(page, options, stream=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1104: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e7ac0f0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1158 2 retries left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models in 0.453850 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e7ac0f0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1156 1 retry left INFO anthropic._base_client:_base_client.py:1161 Retrying request to /v1/models in 0.780547 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e7ac0f0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1068 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1092 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 250, in handle_request resp = self._pool.handle_request(req) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request response = connection.handle_request( pool_request.request ) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 101, in handle_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 78, in handle_request stream = self._connect(request) File "/usr/lib/python3.14/site-packages/httpcore/_sync/connection.py", line 124, in _connect stream = self._network_backend.connect_tcp(**kwargs) File "/usr/lib/python3.14/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1072, in request response = self._client.send( request, stream=stream or self._should_stream_response_body(request=request), **kwargs, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 914, in send response = self._send_handling_auth( request, ...<2 lines>... history=[], ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 942, in _send_handling_auth response = self._send_handling_redirects( request, follow_redirects=follow_redirects, history=history, ) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 979, in _send_handling_redirects response = self._send_single_request(request) File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1014, in _send_single_request response = transport.handle_request(request) File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 249, in handle_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: [Errno 111] Connection refused DEBUG anthropic._base_client:_base_client.py:1103 Raising connection error _________________ TestAsyncBatches.test_method_retrieve[loose] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:669: in test_method_retrieve batch = await async_client.beta.messages.batches.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:539: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.447954 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.917424 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________ TestAsyncBatches.test_method_retrieve_with_all_params[loose] _________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:676: in test_method_retrieve_with_all_params batch = await async_client.beta.messages.batches.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:539: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.440539 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.962969 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ______________ TestAsyncBatches.test_raw_response_retrieve[loose] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:684: in test_raw_response_retrieve response = await async_client.beta.messages.batches.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:539: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.441159 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.929514 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncBatches.test_streaming_response_retrieve[loose] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:695: in test_streaming_response_retrieve async with async_client.beta.messages.batches.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:539: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.481946 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.834225 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________________ TestAsyncBatches.test_method_list[loose] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:715: in test_method_list batch = await async_client.beta.messages.batches.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7f78ac40>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches?beta=true in 0.419841 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7f78ac40>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches?beta=true in 0.871721 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7f78ac40>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncBatches.test_method_list_with_all_params[loose] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:720: in test_method_list_with_all_params batch = await async_client.beta.messages.batches.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7e7ae400>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches?beta=true in 0.434103 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7e7ae400>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches?beta=true in 0.849759 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7e7ae400>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ________________ TestAsyncBatches.test_raw_response_list[loose] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:730: in test_raw_response_list response = await async_client.beta.messages.batches.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e7ade80>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches?beta=true in 0.395035 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e7ade80>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches?beta=true in 0.793955 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e7ade80>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _____________ TestAsyncBatches.test_streaming_response_list[loose] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:739: in test_streaming_response_list async with async_client.beta.messages.batches.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e7ac1a0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches?beta=true in 0.430537 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e7ac1a0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches?beta=true in 0.756165 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e7ac1a0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________________ TestAsyncBatches.test_method_delete[loose] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:750: in test_method_delete batch = await async_client.beta.messages.batches.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:668: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-b3c044ab-c495-4b88-8133-8c6c22dac4bd', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.498465 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-b3c044ab-c495-4b88-8133-8c6c22dac4bd', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.798954 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-b3c044ab-c495-4b88-8133-8c6c22dac4bd', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________ TestAsyncBatches.test_method_delete_with_all_params[loose] __________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:757: in test_method_delete_with_all_params batch = await async_client.beta.messages.batches.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:668: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-52f4f425-46d4-43e0-8536-2d66e491e5e4', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.473347 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-52f4f425-46d4-43e0-8536-2d66e491e5e4', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.809730 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-52f4f425-46d4-43e0-8536-2d66e491e5e4', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _______________ TestAsyncBatches.test_raw_response_delete[loose] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:765: in test_raw_response_delete response = await async_client.beta.messages.batches.with_raw_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:668: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-1a1fd273-d53e-4998-a3bb-5bc6fb2517d1', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.381733 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-1a1fd273-d53e-4998-a3bb-5bc6fb2517d1', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.997391 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-1a1fd273-d53e-4998-a3bb-5bc6fb2517d1', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____________ TestAsyncBatches.test_streaming_response_delete[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:776: in test_streaming_response_delete async with async_client.beta.messages.batches.with_streaming_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:668: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-060b2b5b-2f17-4db6-b280-aa204b15a1d7', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.428474 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-060b2b5b-2f17-4db6-b280-aa204b15a1d7', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.763962 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-060b2b5b-2f17-4db6-b280-aa204b15a1d7', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________________ TestAsyncBatches.test_method_cancel[loose] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:796: in test_method_cancel batch = await async_client.beta.messages.batches.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:729: in cancel return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-3f6be99c-e9d8-4db5-8c83-2dd110a20f9e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.480300 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-3f6be99c-e9d8-4db5-8c83-2dd110a20f9e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.945252 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-3f6be99c-e9d8-4db5-8c83-2dd110a20f9e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________ TestAsyncBatches.test_method_cancel_with_all_params[loose] __________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:803: in test_method_cancel_with_all_params batch = await async_client.beta.messages.batches.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:729: in cancel return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-c0914dfe-e168-4739-8bed-26f0bb5b664a', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.408937 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-c0914dfe-e168-4739-8bed-26f0bb5b664a', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.940646 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-c0914dfe-e168-4739-8bed-26f0bb5b664a', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _______________ TestAsyncBatches.test_raw_response_cancel[loose] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:811: in test_raw_response_cancel response = await async_client.beta.messages.batches.with_raw_response.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:729: in cancel return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-52b7ccec-47e9-4ec0-8b98-b25b1119b554', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.388482 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-52b7ccec-47e9-4ec0-8b98-b25b1119b554', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.907564 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-52b7ccec-47e9-4ec0-8b98-b25b1119b554', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____________ TestAsyncBatches.test_streaming_response_cancel[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:822: in test_streaming_response_cancel async with async_client.beta.messages.batches.with_streaming_response.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:729: in cancel return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-2be63fdb-9a7d-41f4-a752-ad2bcad1c955', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.412060 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-2be63fdb-9a7d-41f4-a752-ad2bcad1c955', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.753284 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-2be63fdb-9a7d-41f4-a752-ad2bcad1c955', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ________________ TestAsyncVersions.test_method_retrieve[loose] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:300: in test_method_retrieve version = await async_client.beta.skills.versions.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:452: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.466339 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.896618 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ________ TestAsyncVersions.test_method_retrieve_with_all_params[loose] _________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:308: in test_method_retrieve_with_all_params version = await async_client.beta.skills.versions.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:452: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.429923 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.847698 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _____________ TestAsyncVersions.test_raw_response_retrieve[loose] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:317: in test_raw_response_retrieve response = await async_client.beta.skills.versions.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:452: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.454264 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.760986 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________ TestAsyncVersions.test_streaming_response_retrieve[loose] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:329: in test_streaming_response_retrieve async with async_client.beta.skills.versions.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:452: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.432655 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.896165 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________________ TestAsyncVersions.test_method_list[loose] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:357: in test_method_list version = await async_client.beta.skills.versions.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7f7b5f30>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.446506 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7f7b5f30>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.901364 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7f7b5f30>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________ TestAsyncVersions.test_method_list_with_all_params[loose] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:364: in test_method_list_with_all_params version = await async_client.beta.skills.versions.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {'limit': 0, 'page': 'page'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e7be8d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?limit=0&page=page DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.468493 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {'limit': 0, 'page': 'page'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e7be8d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?limit=0&page=page DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.843340 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {'limit': 0, 'page': 'page'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e7be8d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?limit=0&page=page DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _______________ TestAsyncVersions.test_raw_response_list[loose] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:374: in test_raw_response_list response = await async_client.beta.skills.versions.with_raw_response.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e6da1f0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.432873 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e6da1f0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.919940 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e6da1f0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____________ TestAsyncVersions.test_streaming_response_list[loose] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:385: in test_streaming_response_list async with async_client.beta.skills.versions.with_streaming_response.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e7ad0c0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.466839 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e7ad0c0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.994595 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e7ad0c0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________________ TestAsyncVersions.test_method_delete[loose] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:405: in test_method_delete version = await async_client.beta.skills.versions.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:580: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-4f2e5943-e075-4cae-8430-24ffc0e99ee5', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.393640 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-4f2e5943-e075-4cae-8430-24ffc0e99ee5', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.808249 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-4f2e5943-e075-4cae-8430-24ffc0e99ee5', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________ TestAsyncVersions.test_method_delete_with_all_params[loose] __________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:413: in test_method_delete_with_all_params version = await async_client.beta.skills.versions.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:580: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-daec0108-b578-4cc2-a58d-37abc131b2c8', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.382756 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-daec0108-b578-4cc2-a58d-37abc131b2c8', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.908097 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-daec0108-b578-4cc2-a58d-37abc131b2c8', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ______________ TestAsyncVersions.test_raw_response_delete[loose] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:422: in test_raw_response_delete response = await async_client.beta.skills.versions.with_raw_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:580: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-c223b879-2986-4938-9e72-67c050029af4', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.426898 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-c223b879-2986-4938-9e72-67c050029af4', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.913665 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-c223b879-2986-4938-9e72-67c050029af4', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncVersions.test_streaming_response_delete[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:434: in test_streaming_response_delete async with async_client.beta.skills.versions.with_streaming_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:580: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-38380ab5-c20f-4ecf-82b6-aff921a2cb5c', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.403502 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-38380ab5-c20f-4ecf-82b6-aff921a2cb5c', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.877104 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-38380ab5-c20f-4ecf-82b6-aff921a2cb5c', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____________________ TestAsyncFiles.test_method_list[loose] ____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:276: in test_method_list file = await async_client.beta.files.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7e7afab0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.393916 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7e7afab0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.952449 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7e7afab0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____________ TestAsyncFiles.test_method_list_with_all_params[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:281: in test_method_list_with_all_params file = await async_client.beta.files.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7e6db3d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.415146 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7e6db3d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.896383 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7e6db3d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________________ TestAsyncFiles.test_raw_response_list[loose] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:291: in test_raw_response_list response = await async_client.beta.files.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e6d9dd0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.471606 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e6d9dd0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.792669 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e6d9dd0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ______________ TestAsyncFiles.test_streaming_response_list[loose] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:300: in test_streaming_response_list async with async_client.beta.files.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e7bfab0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.449201 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e7bfab0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.890121 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e7bfab0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________________ TestAsyncFiles.test_method_delete[loose] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:311: in test_method_delete file = await async_client.beta.files.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:462: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-6a194260-67b6-4bba-b65a-b2166d56eae1', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.404124 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-6a194260-67b6-4bba-b65a-b2166d56eae1', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.809193 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-6a194260-67b6-4bba-b65a-b2166d56eae1', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncFiles.test_method_delete_with_all_params[loose] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:318: in test_method_delete_with_all_params file = await async_client.beta.files.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:462: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-ddc5f655-e450-4d1c-9869-19f583156365', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.376266 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-ddc5f655-e450-4d1c-9869-19f583156365', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.819972 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-ddc5f655-e450-4d1c-9869-19f583156365', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ________________ TestAsyncFiles.test_raw_response_delete[loose] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:326: in test_raw_response_delete response = await async_client.beta.files.with_raw_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:462: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-55e1d49e-bc47-4aec-9dd0-e1f4c1996de4', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.387250 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-55e1d49e-bc47-4aec-9dd0-e1f4c1996de4', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.830903 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-55e1d49e-bc47-4aec-9dd0-e1f4c1996de4', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _____________ TestAsyncFiles.test_streaming_response_delete[loose] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:337: in test_streaming_response_delete async with async_client.beta.files.with_streaming_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:462: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-fe1618b2-f959-4303-8e9c-a37f76e492e5', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.489507 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-fe1618b2-f959-4303-8e9c-a37f76e492e5', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.925809 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-fe1618b2-f959-4303-8e9c-a37f76e492e5', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _____________ TestAsyncFiles.test_method_retrieve_metadata[loose] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:428: in test_method_retrieve_metadata file = await async_client.beta.files.retrieve_metadata( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:561: in retrieve_metadata return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.454085 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.994576 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _____ TestAsyncFiles.test_method_retrieve_metadata_with_all_params[loose] ______ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:435: in test_method_retrieve_metadata_with_all_params file = await async_client.beta.files.retrieve_metadata( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:561: in retrieve_metadata return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.485125 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.981865 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________ TestAsyncFiles.test_raw_response_retrieve_metadata[loose] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:443: in test_raw_response_retrieve_metadata response = await async_client.beta.files.with_raw_response.retrieve_metadata( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:561: in retrieve_metadata return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.486493 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.948746 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _______ TestAsyncFiles.test_streaming_response_retrieve_metadata[loose] ________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:454: in test_streaming_response_retrieve_metadata async with async_client.beta.files.with_streaming_response.retrieve_metadata( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:561: in retrieve_metadata return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.383088 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.837500 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________________ TestAsyncFiles.test_method_upload[loose] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:474: in test_method_upload file = await async_client.beta.files.upload( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:614: in upload return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-5b8cdfd6-f09c-46bd-b33d-3062b3216c8e', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.390496 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-5b8cdfd6-f09c-46bd-b33d-3062b3216c8e', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.944500 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-5b8cdfd6-f09c-46bd-b33d-3062b3216c8e', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncFiles.test_method_upload_with_all_params[loose] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:481: in test_method_upload_with_all_params file = await async_client.beta.files.upload( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:614: in upload return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-3d97ee9f-2bc4-4d07-96f8-a40bbdcbb124', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.480630 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-3d97ee9f-2bc4-4d07-96f8-a40bbdcbb124', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.917772 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-3d97ee9f-2bc4-4d07-96f8-a40bbdcbb124', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ________________ TestAsyncFiles.test_raw_response_upload[loose] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:489: in test_raw_response_upload response = await async_client.beta.files.with_raw_response.upload( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:614: in upload return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-3147adf1-5bed-48a5-a389-2de32d04b1b4', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.492320 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-3147adf1-5bed-48a5-a389-2de32d04b1b4', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.776802 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-3147adf1-5bed-48a5-a389-2de32d04b1b4', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _____________ TestAsyncFiles.test_streaming_response_upload[loose] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:500: in test_streaming_response_upload async with async_client.beta.files.with_streaming_response.upload( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:614: in upload return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-acd725ca-46d1-498a-837e-6586c7209475', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.392567 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-acd725ca-46d1-498a-837e-6586c7209475', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.937810 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-acd725ca-46d1-498a-837e-6586c7209475', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________________ TestAsyncModels.test_method_retrieve[loose] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:110: in test_method_retrieve model = await async_client.beta.models.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:212: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id?beta=true in 0.391812 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id?beta=true in 0.807125 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________ TestAsyncModels.test_method_retrieve_with_all_params[loose] __________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:117: in test_method_retrieve_with_all_params model = await async_client.beta.models.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:212: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id?beta=true in 0.498556 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id?beta=true in 0.978273 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ______________ TestAsyncModels.test_raw_response_retrieve[loose] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:125: in test_raw_response_retrieve response = await async_client.beta.models.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:212: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id?beta=true in 0.434251 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id?beta=true in 0.875384 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncModels.test_streaming_response_retrieve[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:136: in test_streaming_response_retrieve async with async_client.beta.models.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:212: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id?beta=true in 0.442744 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id?beta=true in 0.862391 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________________ TestAsyncModels.test_method_list[loose] ____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:156: in test_method_list model = await async_client.beta.models.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7e7ad640>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models?beta=true in 0.467723 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7e7ad640>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models?beta=true in 0.812258 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7e7ad640>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncModels.test_method_list_with_all_params[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:161: in test_method_list_with_all_params model = await async_client.beta.models.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7e7be8d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models?beta=true in 0.404557 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7e7be8d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models?beta=true in 0.982945 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7e7be8d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ________________ TestAsyncModels.test_raw_response_list[loose] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:171: in test_raw_response_list response = await async_client.beta.models.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e7bc460>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models?beta=true in 0.434700 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e7bc460>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models?beta=true in 0.756125 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e7bc460>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _____________ TestAsyncModels.test_streaming_response_list[loose] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:180: in test_streaming_response_list async with async_client.beta.models.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e422b90>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models?beta=true in 0.471052 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e422b90>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models?beta=true in 0.945673 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e422b90>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________________ TestAsyncSkills.test_method_retrieve[loose] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:237: in test_method_retrieve skill = await async_client.beta.skills.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:460: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.388846 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.944910 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________ TestAsyncSkills.test_method_retrieve_with_all_params[loose] __________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:244: in test_method_retrieve_with_all_params skill = await async_client.beta.skills.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:460: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.436997 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.927915 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ______________ TestAsyncSkills.test_raw_response_retrieve[loose] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:252: in test_raw_response_retrieve response = await async_client.beta.skills.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:460: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.473312 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.847358 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncSkills.test_streaming_response_retrieve[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:263: in test_streaming_response_retrieve async with async_client.beta.skills.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:460: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.467384 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.929595 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________________ TestAsyncSkills.test_method_list[loose] ____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:283: in test_method_list skill = await async_client.beta.skills.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e7bc040>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills?beta=true in 0.410069 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e7bc040>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills?beta=true in 0.898336 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e7bc040>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncSkills.test_method_list_with_all_params[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:288: in test_method_list_with_all_params skill = await async_client.beta.skills.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {'limit': 0, 'page': 'page', 'source': 'source'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e7ae6c0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?limit=0&page=page&source=source DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills?beta=true in 0.376472 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {'limit': 0, 'page': 'page', 'source': 'source'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e7ae6c0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?limit=0&page=page&source=source DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills?beta=true in 0.887380 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {'limit': 0, 'page': 'page', 'source': 'source'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e7ae6c0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?limit=0&page=page&source=source DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ________________ TestAsyncSkills.test_raw_response_list[loose] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:298: in test_raw_response_list response = await async_client.beta.skills.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7dfc1dd0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills?beta=true in 0.384674 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7dfc1dd0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills?beta=true in 0.774038 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7dfc1dd0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _____________ TestAsyncSkills.test_streaming_response_list[loose] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:307: in test_streaming_response_list async with async_client.beta.skills.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7dfc3480>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills?beta=true in 0.485159 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7dfc3480>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills?beta=true in 0.778967 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7dfc3480>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________________ TestAsyncSkills.test_method_delete[loose] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:318: in test_method_delete skill = await async_client.beta.skills.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:586: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-1242d8e9-12e0-4cf2-8f2f-45618c7b8d94', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.491207 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-1242d8e9-12e0-4cf2-8f2f-45618c7b8d94', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.859924 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-1242d8e9-12e0-4cf2-8f2f-45618c7b8d94', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________ TestAsyncSkills.test_method_delete_with_all_params[loose] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:325: in test_method_delete_with_all_params skill = await async_client.beta.skills.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:586: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-a22a5788-007d-49a4-b709-0c1834d017b8', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.466861 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-a22a5788-007d-49a4-b709-0c1834d017b8', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.778535 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-a22a5788-007d-49a4-b709-0c1834d017b8', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _______________ TestAsyncSkills.test_raw_response_delete[loose] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:333: in test_raw_response_delete response = await async_client.beta.skills.with_raw_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:586: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-f0f01c14-b14e-4fb3-905a-0afe8a63cea6', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.396001 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-f0f01c14-b14e-4fb3-905a-0afe8a63cea6', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.782368 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-f0f01c14-b14e-4fb3-905a-0afe8a63cea6', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____________ TestAsyncSkills.test_streaming_response_delete[loose] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:344: in test_streaming_response_delete async with async_client.beta.skills.with_streaming_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:586: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-9148dd62-f4ed-41c5-812a-32e41407a9a0', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.464574 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-9148dd62-f4ed-41c5-812a-32e41407a9a0', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.855921 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-9148dd62-f4ed-41c5-812a-32e41407a9a0', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________________ TestAsyncBatches.test_method_create[loose] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:285: in test_method_create batch = await async_client.messages.batches.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:383: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'files': None, 'idempotency_key': 'stainless-python-retry-656eb2f5-c529-4add-b22b-774c00b685d0', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.447934 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'files': None, 'idempotency_key': 'stainless-python-retry-656eb2f5-c529-4add-b22b-774c00b685d0', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.793636 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'files': None, 'idempotency_key': 'stainless-python-retry-656eb2f5-c529-4add-b22b-774c00b685d0', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _______________ TestAsyncBatches.test_raw_response_create[loose] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:306: in test_raw_response_create response = await async_client.messages.batches.with_raw_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:383: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-8b31bb59-17a5-46ab-896b-a44c57c2bc41', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.418728 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-8b31bb59-17a5-46ab-896b-a44c57c2bc41', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.895764 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-8b31bb59-17a5-46ab-896b-a44c57c2bc41', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____________ TestAsyncBatches.test_streaming_response_create[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:331: in test_streaming_response_create async with async_client.messages.batches.with_streaming_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:383: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-c16db7a4-b052-48f0-bb67-f3b19ac79a03', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.460297 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-c16db7a4-b052-48f0-bb67-f3b19ac79a03', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.811581 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-c16db7a4-b052-48f0-bb67-f3b19ac79a03', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________________ TestAsyncBatches.test_method_retrieve[loose] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:358: in test_method_retrieve batch = await async_client.messages.batches.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:425: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id'} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.423290 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id'} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.776939 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id'} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ______________ TestAsyncBatches.test_raw_response_retrieve[loose] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:365: in test_raw_response_retrieve response = await async_client.messages.batches.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:425: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.401046 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.756844 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncBatches.test_streaming_response_retrieve[loose] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:376: in test_streaming_response_retrieve async with async_client.messages.batches.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:425: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.478262 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.927135 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________________ TestAsyncBatches.test_method_list[loose] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:396: in test_method_list batch = await async_client.messages.batches.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'post_parser': ._parser at 0x7f8c7e7af5e0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.487576 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'post_parser': ._parser at 0x7f8c7e7af5e0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.795767 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'post_parser': ._parser at 0x7f8c7e7af5e0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncBatches.test_method_list_with_all_params[loose] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:401: in test_method_list_with_all_params batch = await async_client.messages.batches.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'post_parser': ._parser at 0x7f8c7e0fd0c0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.442096 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'post_parser': ._parser at 0x7f8c7e0fd0c0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.779316 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'post_parser': ._parser at 0x7f8c7e0fd0c0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ________________ TestAsyncBatches.test_raw_response_list[loose] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:410: in test_raw_response_list response = await async_client.messages.batches.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e0fe820>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.409342 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e0fe820>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.816200 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e0fe820>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _____________ TestAsyncBatches.test_streaming_response_list[loose] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:419: in test_streaming_response_list async with async_client.messages.batches.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e0ffe20>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.391892 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e0ffe20>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.759060 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e0ffe20>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________________ TestAsyncBatches.test_method_delete[loose] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:430: in test_method_delete batch = await async_client.messages.batches.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:526: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'idempotency_key': 'stainless-python-retry-b3c24fcd-6d0b-4239-a220-d2bbe619a7b8', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.421611 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'idempotency_key': 'stainless-python-retry-b3c24fcd-6d0b-4239-a220-d2bbe619a7b8', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.944051 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'idempotency_key': 'stainless-python-retry-b3c24fcd-6d0b-4239-a220-d2bbe619a7b8', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _______________ TestAsyncBatches.test_raw_response_delete[loose] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:437: in test_raw_response_delete response = await async_client.messages.batches.with_raw_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:526: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-576ed453-9ccd-4aab-b639-f9a944e55875', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.423649 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-576ed453-9ccd-4aab-b639-f9a944e55875', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.974864 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-576ed453-9ccd-4aab-b639-f9a944e55875', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____________ TestAsyncBatches.test_streaming_response_delete[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:448: in test_streaming_response_delete async with async_client.messages.batches.with_streaming_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:526: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-0d6979be-153c-45a1-866a-25eb916dd2a9', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.486630 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-0d6979be-153c-45a1-866a-25eb916dd2a9', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.942003 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-0d6979be-153c-45a1-866a-25eb916dd2a9', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________________ TestAsyncBatches.test_method_cancel[loose] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:468: in test_method_cancel batch = await async_client.messages.batches.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:573: in cancel return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'files': None, 'idempotency_key': 'stainless-python-retry-7a72de3c-ba0d-438a-8b9c-93eac3ae1460', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.455397 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'files': None, 'idempotency_key': 'stainless-python-retry-7a72de3c-ba0d-438a-8b9c-93eac3ae1460', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.781535 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'files': None, 'idempotency_key': 'stainless-python-retry-7a72de3c-ba0d-438a-8b9c-93eac3ae1460', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _______________ TestAsyncBatches.test_raw_response_cancel[loose] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:475: in test_raw_response_cancel response = await async_client.messages.batches.with_raw_response.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:573: in cancel return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-e4a1851e-89f0-4001-a07b-56c2c62f8e08', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.455025 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-e4a1851e-89f0-4001-a07b-56c2c62f8e08', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.982430 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-e4a1851e-89f0-4001-a07b-56c2c62f8e08', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____________ TestAsyncBatches.test_streaming_response_cancel[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:486: in test_streaming_response_cancel async with async_client.messages.batches.with_streaming_response.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:573: in cancel return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-496d9234-c047-4d22-9782-b48306c13949', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.491578 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-496d9234-c047-4d22-9782-b48306c13949', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.791822 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-496d9234-c047-4d22-9782-b48306c13949', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________ TestAsyncCompletions.test_method_create_overload_1[loose] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:136: in test_method_create_overload_1 completion = await async_client.completions.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:785: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-b8a424eb-28d8-460e-881d-455fdfcb78fe', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.421857 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-b8a424eb-28d8-460e-881d-455fdfcb78fe', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.918602 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-b8a424eb-28d8-460e-881d-455fdfcb78fe', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __ TestAsyncCompletions.test_method_create_with_all_params_overload_1[loose] ___ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:145: in test_method_create_with_all_params_overload_1 completion = await async_client.completions.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:785: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-0c0287e3-846e-4ab0-8746-aaf6acbf904e', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': False, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.478830 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-0c0287e3-846e-4ab0-8746-aaf6acbf904e', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': False, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.799573 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-0c0287e3-846e-4ab0-8746-aaf6acbf904e', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': False, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _______ TestAsyncCompletions.test_raw_response_create_overload_1[loose] ________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:161: in test_raw_response_create_overload_1 response = await async_client.completions.with_raw_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:785: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-d7a9a336-73d7-4200-843a-5de91cedf5c5', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.390499 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-d7a9a336-73d7-4200-843a-5de91cedf5c5', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.969040 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-d7a9a336-73d7-4200-843a-5de91cedf5c5', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____ TestAsyncCompletions.test_streaming_response_create_overload_1[loose] _____ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:174: in test_streaming_response_create_overload_1 async with async_client.completions.with_streaming_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:785: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-277036fc-68b0-4547-9734-343d44ad05c4', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.456865 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-277036fc-68b0-4547-9734-343d44ad05c4', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.803483 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-277036fc-68b0-4547-9734-343d44ad05c4', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________ TestAsyncCompletions.test_method_create_overload_2[loose] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:189: in test_method_create_overload_2 completion_stream = await async_client.completions.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:785: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-be980410-5892-46fe-aff3-15e868589549', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.407715 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-be980410-5892-46fe-aff3-15e868589549', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.778679 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-be980410-5892-46fe-aff3-15e868589549', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __ TestAsyncCompletions.test_method_create_with_all_params_overload_2[loose] ___ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:199: in test_method_create_with_all_params_overload_2 completion_stream = await async_client.completions.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:785: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-50998d06-4b95-400b-8dd0-971a8d0ce79c', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': True, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.386346 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-50998d06-4b95-400b-8dd0-971a8d0ce79c', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': True, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.847083 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-50998d06-4b95-400b-8dd0-971a8d0ce79c', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': True, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _______ TestAsyncCompletions.test_raw_response_create_overload_2[loose] ________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:215: in test_raw_response_create_overload_2 response = await async_client.completions.with_raw_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:785: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-c96ab6ff-3fa9-4bed-a524-3c9ca5d06f52', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.408091 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-c96ab6ff-3fa9-4bed-a524-3c9ca5d06f52', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.949748 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-c96ab6ff-3fa9-4bed-a524-3c9ca5d06f52', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____ TestAsyncCompletions.test_streaming_response_create_overload_2[loose] _____ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:228: in test_streaming_response_create_overload_2 async with async_client.completions.with_streaming_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:785: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-b8b3fa2f-80e9-41e3-885c-b208dd62f391', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.469300 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-b8b3fa2f-80e9-41e3-885c-b208dd62f391', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.937788 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-b8b3fa2f-80e9-41e3-885c-b208dd62f391', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____________ TestAsyncMessages.test_method_create_overload_1[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:414: in test_method_create_overload_1 message = await async_client.messages.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2331: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-291787b2-19d3-4d23-8a52-47e1d4452d07', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.387920 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-291787b2-19d3-4d23-8a52-47e1d4452d07', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.751492 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-291787b2-19d3-4d23-8a52-47e1d4452d07', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____ TestAsyncMessages.test_method_create_with_all_params_overload_1[loose] ____ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:428: in test_method_create_with_all_params_overload_1 message = await async_client.messages.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2331: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-5f95ae1d-6117-4d2e-a75c-9e7f25e08eb4', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': False, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.475299 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-5f95ae1d-6117-4d2e-a75c-9e7f25e08eb4', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': False, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.778849 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-5f95ae1d-6117-4d2e-a75c-9e7f25e08eb4', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': False, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________ TestAsyncMessages.test_raw_response_create_overload_1[loose] _________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:503: in test_raw_response_create_overload_1 response = await async_client.messages.with_raw_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2331: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-53740df6-8163-4997-88ad-806aa9ade397', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.461638 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-53740df6-8163-4997-88ad-806aa9ade397', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.964093 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-53740df6-8163-4997-88ad-806aa9ade397', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ______ TestAsyncMessages.test_streaming_response_create_overload_1[loose] ______ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:521: in test_streaming_response_create_overload_1 async with async_client.messages.with_streaming_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2331: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-f2f8c377-9ade-40a4-9e3d-8a6347f8e105', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.487546 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-f2f8c377-9ade-40a4-9e3d-8a6347f8e105', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.844924 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-f2f8c377-9ade-40a4-9e3d-8a6347f8e105', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____________ TestAsyncMessages.test_method_create_overload_2[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:541: in test_method_create_overload_2 message_stream = await async_client.messages.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2331: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-0f98fd44-9313-4aed-8b3f-5f4860a5049f', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.481888 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-0f98fd44-9313-4aed-8b3f-5f4860a5049f', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.782451 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-0f98fd44-9313-4aed-8b3f-5f4860a5049f', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____ TestAsyncMessages.test_method_create_with_all_params_overload_2[loose] ____ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:556: in test_method_create_with_all_params_overload_2 message_stream = await async_client.messages.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2331: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-46b8e387-08af-4ba3-95ab-e4ade8c9d596', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': True, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.440376 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-46b8e387-08af-4ba3-95ab-e4ade8c9d596', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': True, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.806663 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-46b8e387-08af-4ba3-95ab-e4ade8c9d596', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': True, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________ TestAsyncMessages.test_raw_response_create_overload_2[loose] _________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:631: in test_raw_response_create_overload_2 response = await async_client.messages.with_raw_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2331: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-b0749e82-0e07-45a6-979a-0c0133339a2e', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.403600 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-b0749e82-0e07-45a6-979a-0c0133339a2e', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.958472 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-b0749e82-0e07-45a6-979a-0c0133339a2e', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ______ TestAsyncMessages.test_streaming_response_create_overload_2[loose] ______ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:649: in test_streaming_response_create_overload_2 async with async_client.messages.with_streaming_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2331: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-5dc30f6e-d8df-4790-9421-8546a11b1e3f', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.424761 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-5dc30f6e-d8df-4790-9421-8546a11b1e3f', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.900864 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-5dc30f6e-d8df-4790-9421-8546a11b1e3f', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____________ TestAsyncMessages.test_deprecated_model_warning[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:672: in test_deprecated_model_warning await async_client.messages.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2331: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-53e683a1-814c-447d-8b6b-856a51b8b4ea', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'role': 'user', 'content': 'Hello'}], 'model': 'claude-1.3'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.383467 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-53e683a1-814c-447d-8b6b-856a51b8b4ea', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'role': 'user', 'content': 'Hello'}], 'model': 'claude-1.3'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.955885 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-53e683a1-814c-447d-8b6b-856a51b8b4ea', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'role': 'user', 'content': 'Hello'}], 'model': 'claude-1.3'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ______________ TestAsyncMessages.test_method_count_tokens[loose] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:680: in test_method_count_tokens message = await async_client.messages.count_tokens( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2815: in count_tokens return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-27c98075-c868-4786-bbc1-7663d118542d', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/count_tokens in 0.427578 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-27c98075-c868-4786-bbc1-7663d118542d', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/count_tokens in 0.993669 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-27c98075-c868-4786-bbc1-7663d118542d', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ______ TestAsyncMessages.test_method_count_tokens_with_all_params[loose] _______ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:693: in test_method_count_tokens_with_all_params message = await async_client.messages.count_tokens( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2815: in count_tokens return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-c9a8fcd9-a465-4508-b73c-d5d33516d43d', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101', 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/count_tokens in 0.464210 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-c9a8fcd9-a465-4508-b73c-d5d33516d43d', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101', 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/count_tokens in 0.845631 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-c9a8fcd9-a465-4508-b73c-d5d33516d43d', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101', 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncMessages.test_raw_response_count_tokens[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:760: in test_raw_response_count_tokens response = await async_client.messages.with_raw_response.count_tokens( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2815: in count_tokens return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-9638ccaf-a4b9-4868-8d7f-9884b20b6ec8', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/count_tokens in 0.492423 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-9638ccaf-a4b9-4868-8d7f-9884b20b6ec8', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/count_tokens in 0.979803 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-9638ccaf-a4b9-4868-8d7f-9884b20b6ec8', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ________ TestAsyncMessages.test_streaming_response_count_tokens[loose] _________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:777: in test_streaming_response_count_tokens async with async_client.messages.with_streaming_response.count_tokens( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2815: in count_tokens return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-9bfb5ffe-63cf-440a-a55d-d4c107a70bed', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/count_tokens in 0.455543 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-9bfb5ffe-63cf-440a-a55d-d4c107a70bed', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/count_tokens in 0.943970 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-9bfb5ffe-63cf-440a-a55d-d4c107a70bed', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________________ TestAsyncModels.test_method_retrieve[loose] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:110: in test_method_retrieve model = await async_client.models.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:212: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id in 0.470942 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id in 0.816054 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________ TestAsyncModels.test_method_retrieve_with_all_params[loose] __________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:117: in test_method_retrieve_with_all_params model = await async_client.models.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:212: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id in 0.427069 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id in 0.863222 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ______________ TestAsyncModels.test_raw_response_retrieve[loose] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:125: in test_raw_response_retrieve response = await async_client.models.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:212: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id in 0.405213 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id in 0.816711 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncModels.test_streaming_response_retrieve[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:136: in test_streaming_response_retrieve async with async_client.models.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:212: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id in 0.458392 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id in 0.798328 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________________ TestAsyncModels.test_method_list[loose] ____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:156: in test_method_list model = await async_client.models.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7df61f30>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models in 0.440011 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7df61f30>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models in 0.818498 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7df61f30>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncModels.test_method_list_with_all_params[loose] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:161: in test_method_list_with_all_params model = await async_client.models.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7df638a0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models in 0.476401 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7df638a0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models in 0.995578 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7df638a0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ________________ TestAsyncModels.test_raw_response_list[loose] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:171: in test_raw_response_list response = await async_client.models.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7df60a90>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models in 0.496742 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7df60a90>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models in 0.780805 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7df60a90>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _____________ TestAsyncModels.test_streaming_response_list[loose] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:180: in test_streaming_response_list async with async_client.models.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e0fceb0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models in 0.493129 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e0fceb0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models in 0.904929 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e0fceb0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ________________ TestAsyncBatches.test_method_retrieve[strict] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:669: in test_method_retrieve batch = await async_client.beta.messages.batches.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:539: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.396381 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.759844 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ________ TestAsyncBatches.test_method_retrieve_with_all_params[strict] _________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:676: in test_method_retrieve_with_all_params batch = await async_client.beta.messages.batches.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:539: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.453423 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.987706 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _____________ TestAsyncBatches.test_raw_response_retrieve[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:684: in test_raw_response_retrieve response = await async_client.beta.messages.batches.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:539: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.492171 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.897487 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________ TestAsyncBatches.test_streaming_response_retrieve[strict] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:695: in test_streaming_response_retrieve async with async_client.beta.messages.batches.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:539: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.484221 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.998726 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________________ TestAsyncBatches.test_method_list[strict] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:715: in test_method_list batch = await async_client.beta.messages.batches.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7df22610>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches?beta=true in 0.494099 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7df22610>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches?beta=true in 0.827217 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7df22610>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________ TestAsyncBatches.test_method_list_with_all_params[strict] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:720: in test_method_list_with_all_params batch = await async_client.beta.messages.batches.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7df20a90>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches?beta=true in 0.486030 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7df20a90>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches?beta=true in 0.869533 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'post_parser': ._parser at 0x7f8c7df20a90>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _______________ TestAsyncBatches.test_raw_response_list[strict] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:730: in test_raw_response_list response = await async_client.beta.messages.batches.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7df210c0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches?beta=true in 0.439973 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7df210c0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches?beta=true in 0.759003 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7df210c0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____________ TestAsyncBatches.test_streaming_response_list[strict] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:739: in test_streaming_response_list async with async_client.beta.messages.batches.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7df21380>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches?beta=true in 0.389724 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7df21380>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches?beta=true in 0.952112 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7df21380>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________________ TestAsyncBatches.test_method_delete[strict] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:750: in test_method_delete batch = await async_client.beta.messages.batches.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:668: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-a0962d04-6f71-4882-8822-f9a7d1298258', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.417132 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-a0962d04-6f71-4882-8822-f9a7d1298258', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.834249 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-a0962d04-6f71-4882-8822-f9a7d1298258', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________ TestAsyncBatches.test_method_delete_with_all_params[strict] __________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:757: in test_method_delete_with_all_params batch = await async_client.beta.messages.batches.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:668: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-f256445c-e0d8-4994-b352-5410608e8ced', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.381286 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-f256445c-e0d8-4994-b352-5410608e8ced', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.779326 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'idempotency_key': 'stainless-python-retry-f256445c-e0d8-4994-b352-5410608e8ced', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ______________ TestAsyncBatches.test_raw_response_delete[strict] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:765: in test_raw_response_delete response = await async_client.beta.messages.batches.with_raw_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:668: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-d4f9f254-e561-4aff-9f53-e3ddd4f99730', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.393797 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-d4f9f254-e561-4aff-9f53-e3ddd4f99730', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.855298 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-d4f9f254-e561-4aff-9f53-e3ddd4f99730', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncBatches.test_streaming_response_delete[strict] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:776: in test_streaming_response_delete async with async_client.beta.messages.batches.with_streaming_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:668: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-231965e5-259b-4522-b5ce-5a9ab850c08e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.478552 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-231965e5-259b-4522-b5ce-5a9ab850c08e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id?beta=true in 0.806033 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-231965e5-259b-4522-b5ce-5a9ab850c08e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________________ TestAsyncBatches.test_method_cancel[strict] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:796: in test_method_cancel batch = await async_client.beta.messages.batches.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:729: in cancel return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-34e78d90-1744-4107-b69e-84fad0adcdbb', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.498793 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-34e78d90-1744-4107-b69e-84fad0adcdbb', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.816756 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-34e78d90-1744-4107-b69e-84fad0adcdbb', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________ TestAsyncBatches.test_method_cancel_with_all_params[strict] __________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:803: in test_method_cancel_with_all_params batch = await async_client.beta.messages.batches.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:729: in cancel return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-166b29a3-56fc-422d-96d1-a705e1c6384b', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.478078 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-166b29a3-56fc-422d-96d1-a705e1c6384b', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.878460 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'string,message-batches-2024-09-24'}, 'files': None, 'idempotency_key': 'stainless-python-retry-166b29a3-56fc-422d-96d1-a705e1c6384b', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ______________ TestAsyncBatches.test_raw_response_cancel[strict] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:811: in test_raw_response_cancel response = await async_client.beta.messages.batches.with_raw_response.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:729: in cancel return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-bec1dabe-113b-4be9-8b7a-2d680b1e7173', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.421732 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-bec1dabe-113b-4be9-8b7a-2d680b1e7173', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.763273 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-bec1dabe-113b-4be9-8b7a-2d680b1e7173', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncBatches.test_streaming_response_cancel[strict] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/messages/test_batches.py:822: in test_streaming_response_cancel async with async_client.beta.messages.batches.with_streaming_response.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/messages/batches.py:729: in cancel return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-c2ce0c00-ae92-48c4-a513-aef3fd9a649f', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.413620 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-c2ce0c00-ae92-48c4-a513-aef3fd9a649f', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel?beta=true in 0.871718 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel?beta=true', 'headers': {'anthropic-beta': 'message-batches-2024-09-24', 'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-c2ce0c00-ae92-48c4-a513-aef3fd9a649f', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ________________ TestAsyncVersions.test_method_retrieve[strict] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:300: in test_method_retrieve version = await async_client.beta.skills.versions.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:452: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.387184 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.759674 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ________ TestAsyncVersions.test_method_retrieve_with_all_params[strict] ________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:308: in test_method_retrieve_with_all_params version = await async_client.beta.skills.versions.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:452: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.472019 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.866862 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _____________ TestAsyncVersions.test_raw_response_retrieve[strict] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:317: in test_raw_response_retrieve response = await async_client.beta.skills.versions.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:452: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.426684 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.856297 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________ TestAsyncVersions.test_streaming_response_retrieve[strict] __________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:329: in test_streaming_response_retrieve async with async_client.beta.skills.versions.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:452: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.427996 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.818489 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________________ TestAsyncVersions.test_method_list[strict] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:357: in test_method_list version = await async_client.beta.skills.versions.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7df20930>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.443011 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7df20930>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.834653 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7df20930>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________ TestAsyncVersions.test_method_list_with_all_params[strict] __________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:364: in test_method_list_with_all_params version = await async_client.beta.skills.versions.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {'limit': 0, 'page': 'page'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7df20e00>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?limit=0&page=page DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.379960 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {'limit': 0, 'page': 'page'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7df20e00>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?limit=0&page=page DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.878500 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {'limit': 0, 'page': 'page'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7df20e00>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?limit=0&page=page DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _______________ TestAsyncVersions.test_raw_response_list[strict] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:374: in test_raw_response_list response = await async_client.beta.skills.versions.with_raw_response.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7df209e0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.427631 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7df209e0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.986371 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7df209e0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____________ TestAsyncVersions.test_streaming_response_list[strict] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:385: in test_streaming_response_list async with async_client.beta.skills.versions.with_streaming_response.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e6dacf0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.497538 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e6dacf0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions?beta=true in 0.901271 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id/versions?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e6dacf0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id/versions?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________________ TestAsyncVersions.test_method_delete[strict] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:405: in test_method_delete version = await async_client.beta.skills.versions.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:580: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-4eb4359a-9c91-417a-8358-19030a574b58', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.421667 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-4eb4359a-9c91-417a-8358-19030a574b58', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.893130 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-4eb4359a-9c91-417a-8358-19030a574b58', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________ TestAsyncVersions.test_method_delete_with_all_params[strict] _________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:413: in test_method_delete_with_all_params version = await async_client.beta.skills.versions.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:580: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-47406179-44f2-4ad6-8e99-280783c5b926', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.402697 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-47406179-44f2-4ad6-8e99-280783c5b926', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.852113 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-47406179-44f2-4ad6-8e99-280783c5b926', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ______________ TestAsyncVersions.test_raw_response_delete[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:422: in test_raw_response_delete response = await async_client.beta.skills.versions.with_raw_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:580: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-041f2213-d88f-4b86-b449-2888a6a3bb2e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.458399 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-041f2213-d88f-4b86-b449-2888a6a3bb2e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.912110 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-041f2213-d88f-4b86-b449-2888a6a3bb2e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncVersions.test_streaming_response_delete[strict] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/skills/test_versions.py:434: in test_streaming_response_delete async with async_client.beta.skills.versions.with_streaming_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/versions.py:580: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-3ceeba66-3bb7-4c60-81de-35c79cdcd96b', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.471816 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-3ceeba66-3bb7-4c60-81de-35c79cdcd96b', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id/versions/version?beta=true in 0.867427 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id/versions/version?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-3ceeba66-3bb7-4c60-81de-35c79cdcd96b', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id/versions/version?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________________ TestAsyncFiles.test_method_list[strict] ____________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:276: in test_method_list file = await async_client.beta.files.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7de11850>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.473046 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7de11850>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.979471 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7de11850>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncFiles.test_method_list_with_all_params[strict] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:281: in test_method_list_with_all_params file = await async_client.beta.files.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7df628d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.401078 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7df628d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.766752 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'post_parser': ._parser at 0x7f8c7df628d0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ________________ TestAsyncFiles.test_raw_response_list[strict] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:291: in test_raw_response_list response = await async_client.beta.files.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7df616f0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.473068 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7df616f0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.877138 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7df616f0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _____________ TestAsyncFiles.test_streaming_response_list[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:300: in test_streaming_response_list async with async_client.beta.files.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e0fd4e0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.448023 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e0fd4e0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.808742 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e0fd4e0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________________ TestAsyncFiles.test_method_delete[strict] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:311: in test_method_delete file = await async_client.beta.files.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:462: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-35bc7685-a8fa-46d4-beab-0a78669a0214', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.441214 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-35bc7685-a8fa-46d4-beab-0a78669a0214', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.900973 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-35bc7685-a8fa-46d4-beab-0a78669a0214', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________ TestAsyncFiles.test_method_delete_with_all_params[strict] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:318: in test_method_delete_with_all_params file = await async_client.beta.files.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:462: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-5099a253-003f-4a49-a9e1-66c4c14c7070', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.476530 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-5099a253-003f-4a49-a9e1-66c4c14c7070', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.984855 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}, 'idempotency_key': 'stainless-python-retry-5099a253-003f-4a49-a9e1-66c4c14c7070', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _______________ TestAsyncFiles.test_raw_response_delete[strict] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:326: in test_raw_response_delete response = await async_client.beta.files.with_raw_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:462: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-d0d43884-2148-4fcb-bc7c-bdb59e551107', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.472313 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-d0d43884-2148-4fcb-bc7c-bdb59e551107', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.877536 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-d0d43884-2148-4fcb-bc7c-bdb59e551107', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____________ TestAsyncFiles.test_streaming_response_delete[strict] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:337: in test_streaming_response_delete async with async_client.beta.files.with_streaming_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:462: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-dceae978-a0aa-44eb-8ffa-67132c057fb2', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.447708 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-dceae978-a0aa-44eb-8ffa-67132c057fb2', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.921278 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-dceae978-a0aa-44eb-8ffa-67132c057fb2', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _____________ TestAsyncFiles.test_method_retrieve_metadata[strict] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:428: in test_method_retrieve_metadata file = await async_client.beta.files.retrieve_metadata( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:561: in retrieve_metadata return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.471503 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.931288 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _____ TestAsyncFiles.test_method_retrieve_metadata_with_all_params[strict] _____ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:435: in test_method_retrieve_metadata_with_all_params file = await async_client.beta.files.retrieve_metadata( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:561: in retrieve_metadata return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.439791 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.874120 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________ TestAsyncFiles.test_raw_response_retrieve_metadata[strict] __________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:443: in test_raw_response_retrieve_metadata response = await async_client.beta.files.with_raw_response.retrieve_metadata( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:561: in retrieve_metadata return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.433522 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.808051 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _______ TestAsyncFiles.test_streaming_response_retrieve_metadata[strict] _______ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:454: in test_streaming_response_retrieve_metadata async with async_client.beta.files.with_streaming_response.retrieve_metadata( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:561: in retrieve_metadata return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.418532 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files/file_id?beta=true in 0.979802 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/files/file_id?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/files/file_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________________ TestAsyncFiles.test_method_upload[strict] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:474: in test_method_upload file = await async_client.beta.files.upload( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:614: in upload return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-307c2ed6-e202-4f82-8b89-4147d334ac81', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.388903 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-307c2ed6-e202-4f82-8b89-4147d334ac81', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.829274 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-307c2ed6-e202-4f82-8b89-4147d334ac81', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________ TestAsyncFiles.test_method_upload_with_all_params[strict] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:481: in test_method_upload_with_all_params file = await async_client.beta.files.upload( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:614: in upload return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-7aa02ff1-8850-4ab3-bc23-08b3f42eb9cc', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.405219 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-7aa02ff1-8850-4ab3-bc23-08b3f42eb9cc', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.860402 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'string,files-api-2025-04-14', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-7aa02ff1-8850-4ab3-bc23-08b3f42eb9cc', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _______________ TestAsyncFiles.test_raw_response_upload[strict] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:489: in test_raw_response_upload response = await async_client.beta.files.with_raw_response.upload( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:614: in upload return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-fca53129-8b11-4b4a-a24e-b9bb5af31194', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.436922 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-fca53129-8b11-4b4a-a24e-b9bb5af31194', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.847229 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'true', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-fca53129-8b11-4b4a-a24e-b9bb5af31194', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____________ TestAsyncFiles.test_streaming_response_upload[strict] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_files.py:500: in test_streaming_response_upload async with async_client.beta.files.with_streaming_response.upload( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/files.py:614: in upload return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-46684ed2-43a3-446a-9c61-4bb87bed31c1', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.497716 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-46684ed2-43a3-446a-9c61-4bb87bed31c1', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/files?beta=true in 0.812880 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/files?beta=true', 'headers': {'anthropic-beta': 'files-api-2025-04-14', 'X-Stainless-Raw-Response': 'stream', 'Content-Type': 'multipart/form-data'}, 'files': [('file', b'raw file contents')], 'idempotency_key': 'stainless-python-retry-46684ed2-43a3-446a-9c61-4bb87bed31c1', 'content': None, 'json_data': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/files?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________________ TestAsyncModels.test_method_retrieve[strict] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:110: in test_method_retrieve model = await async_client.beta.models.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:212: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id?beta=true in 0.490349 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id?beta=true in 0.946863 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________ TestAsyncModels.test_method_retrieve_with_all_params[strict] _________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:117: in test_method_retrieve_with_all_params model = await async_client.beta.models.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:212: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id?beta=true in 0.495279 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id?beta=true in 0.879734 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ______________ TestAsyncModels.test_raw_response_retrieve[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:125: in test_raw_response_retrieve response = await async_client.beta.models.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:212: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id?beta=true in 0.408978 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id?beta=true in 0.806538 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncModels.test_streaming_response_retrieve[strict] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:136: in test_streaming_response_retrieve async with async_client.beta.models.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/models.py:212: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id?beta=true in 0.456006 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id?beta=true in 0.814962 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id?beta=true', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________________ TestAsyncModels.test_method_list[strict] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:156: in test_method_list model = await async_client.beta.models.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7e0be560>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models?beta=true in 0.447922 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7e0be560>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models?beta=true in 0.774710 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7e0be560>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncModels.test_method_list_with_all_params[strict] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:161: in test_method_list_with_all_params model = await async_client.beta.models.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7e0fd9b0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models?beta=true in 0.431747 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7e0fd9b0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models?beta=true in 0.907748 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7e0fd9b0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ________________ TestAsyncModels.test_raw_response_list[strict] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:171: in test_raw_response_list response = await async_client.beta.models.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e4210c0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models?beta=true in 0.433588 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e4210c0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models?beta=true in 0.892808 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7e4210c0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _____________ TestAsyncModels.test_streaming_response_list[strict] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_models.py:180: in test_streaming_response_list async with async_client.beta.models.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7df21850>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models?beta=true in 0.425746 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7df21850>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models?beta=true in 0.918709 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models?beta=true', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7df21850>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________________ TestAsyncSkills.test_method_retrieve[strict] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:237: in test_method_retrieve skill = await async_client.beta.skills.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:460: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.482390 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.773011 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________ TestAsyncSkills.test_method_retrieve_with_all_params[strict] _________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:244: in test_method_retrieve_with_all_params skill = await async_client.beta.skills.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:460: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.376404 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.995835 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ______________ TestAsyncSkills.test_raw_response_retrieve[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:252: in test_raw_response_retrieve response = await async_client.beta.skills.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:460: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.436751 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.887586 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncSkills.test_streaming_response_retrieve[strict] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:263: in test_streaming_response_retrieve async with async_client.beta.skills.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:460: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.411589 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.790744 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________________ TestAsyncSkills.test_method_list[strict] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:283: in test_method_list skill = await async_client.beta.skills.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7df20510>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills?beta=true in 0.414555 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7df20510>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills?beta=true in 0.825587 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7df20510>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncSkills.test_method_list_with_all_params[strict] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:288: in test_method_list_with_all_params skill = await async_client.beta.skills.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {'limit': 0, 'page': 'page', 'source': 'source'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e4231c0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?limit=0&page=page&source=source DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills?beta=true in 0.494670 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {'limit': 0, 'page': 'page', 'source': 'source'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e4231c0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?limit=0&page=page&source=source DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills?beta=true in 0.841107 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {'limit': 0, 'page': 'page', 'source': 'source'}, 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'post_parser': ._parser at 0x7f8c7e4231c0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?limit=0&page=page&source=source DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ________________ TestAsyncSkills.test_raw_response_list[strict] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:298: in test_raw_response_list response = await async_client.beta.skills.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7df63b60>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills?beta=true in 0.391540 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7df63b60>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills?beta=true in 0.979982 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7df63b60>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _____________ TestAsyncSkills.test_streaming_response_list[strict] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:307: in test_streaming_response_list async with async_client.beta.skills.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e0be2a0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills?beta=true in 0.385559 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e0be2a0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills?beta=true in 0.794450 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/skills?beta=true', 'params': {}, 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e0be2a0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/skills?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________________ TestAsyncSkills.test_method_delete[strict] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:318: in test_method_delete skill = await async_client.beta.skills.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:586: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-91183ae8-fef4-4325-9fe6-4bebadcfb879', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.489558 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-91183ae8-fef4-4325-9fe6-4bebadcfb879', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.980778 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-91183ae8-fef4-4325-9fe6-4bebadcfb879', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________ TestAsyncSkills.test_method_delete_with_all_params[strict] __________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:325: in test_method_delete_with_all_params skill = await async_client.beta.skills.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:586: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-583d7029-f5a7-4100-8bcd-8a797c34c772', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.473174 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-583d7029-f5a7-4100-8bcd-8a797c34c772', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.804883 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'string,skills-2025-10-02'}, 'idempotency_key': 'stainless-python-retry-583d7029-f5a7-4100-8bcd-8a797c34c772', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _______________ TestAsyncSkills.test_raw_response_delete[strict] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:333: in test_raw_response_delete response = await async_client.beta.skills.with_raw_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:586: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-70c2a1a0-cfc5-4848-b60e-fc0db0e2ca4f', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.381987 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-70c2a1a0-cfc5-4848-b60e-fc0db0e2ca4f', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.757682 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-70c2a1a0-cfc5-4848-b60e-fc0db0e2ca4f', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____________ TestAsyncSkills.test_streaming_response_delete[strict] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/beta/test_skills.py:344: in test_streaming_response_delete async with async_client.beta.skills.with_streaming_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/beta/skills/skills.py:586: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-af45f0f1-cd77-4dfd-b026-4e2e12479e0e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.381691 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-af45f0f1-cd77-4dfd-b026-4e2e12479e0e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/skills/skill_id?beta=true in 0.770102 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/skills/skill_id?beta=true', 'headers': {'anthropic-beta': 'skills-2025-10-02', 'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-af45f0f1-cd77-4dfd-b026-4e2e12479e0e', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/skills/skill_id?beta=true DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________________ TestAsyncBatches.test_method_create[strict] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:285: in test_method_create batch = await async_client.messages.batches.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:383: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'files': None, 'idempotency_key': 'stainless-python-retry-d50f09ef-06c3-4f3f-8122-2dc6fd965f46', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.433595 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'files': None, 'idempotency_key': 'stainless-python-retry-d50f09ef-06c3-4f3f-8122-2dc6fd965f46', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.934498 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'files': None, 'idempotency_key': 'stainless-python-retry-d50f09ef-06c3-4f3f-8122-2dc6fd965f46', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ______________ TestAsyncBatches.test_raw_response_create[strict] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:306: in test_raw_response_create response = await async_client.messages.batches.with_raw_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:383: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-70586ed1-dce5-4973-af8e-5b32f239936b', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.428178 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-70586ed1-dce5-4973-af8e-5b32f239936b', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.834149 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-70586ed1-dce5-4973-af8e-5b32f239936b', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncBatches.test_streaming_response_create[strict] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:331: in test_streaming_response_create async with async_client.messages.batches.with_streaming_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:383: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-e996d000-9359-4056-9ead-1e7bd34f0e3f', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.458121 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-e996d000-9359-4056-9ead-1e7bd34f0e3f', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.907596 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-e996d000-9359-4056-9ead-1e7bd34f0e3f', 'content': None, 'json_data': {'requests': [{'custom_id': 'my-custom-id-1', 'params': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ________________ TestAsyncBatches.test_method_retrieve[strict] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:358: in test_method_retrieve batch = await async_client.messages.batches.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:425: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id'} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.399883 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id'} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.996996 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id'} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _____________ TestAsyncBatches.test_raw_response_retrieve[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:365: in test_raw_response_retrieve response = await async_client.messages.batches.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:425: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.455737 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.849342 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________ TestAsyncBatches.test_streaming_response_retrieve[strict] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:376: in test_streaming_response_retrieve async with async_client.messages.batches.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:425: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.495877 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.898043 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________________ TestAsyncBatches.test_method_list[strict] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:396: in test_method_list batch = await async_client.messages.batches.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'post_parser': ._parser at 0x7f8c7deae6c0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.431241 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'post_parser': ._parser at 0x7f8c7deae6c0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.854034 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'post_parser': ._parser at 0x7f8c7deae6c0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________ TestAsyncBatches.test_method_list_with_all_params[strict] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:401: in test_method_list_with_all_params batch = await async_client.messages.batches.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'post_parser': ._parser at 0x7f8c7de103b0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.389462 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'post_parser': ._parser at 0x7f8c7de103b0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.994529 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'post_parser': ._parser at 0x7f8c7de103b0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _______________ TestAsyncBatches.test_raw_response_list[strict] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:410: in test_raw_response_list response = await async_client.messages.batches.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7de109e0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.480411 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7de109e0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.974562 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7de109e0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____________ TestAsyncBatches.test_streaming_response_list[strict] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:419: in test_streaming_response_list async with async_client.messages.batches.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e6dbab0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.411836 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e6dbab0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches in 0.812153 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/messages/batches', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7e6dbab0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/messages/batches DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________________ TestAsyncBatches.test_method_delete[strict] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:430: in test_method_delete batch = await async_client.messages.batches.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:526: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'idempotency_key': 'stainless-python-retry-13a99147-bb6c-4565-8bca-9f9668a67ef1', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.497890 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'idempotency_key': 'stainless-python-retry-13a99147-bb6c-4565-8bca-9f9668a67ef1', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.989379 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'idempotency_key': 'stainless-python-retry-13a99147-bb6c-4565-8bca-9f9668a67ef1', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ______________ TestAsyncBatches.test_raw_response_delete[strict] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:437: in test_raw_response_delete response = await async_client.messages.batches.with_raw_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:526: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-0fc92a1d-2d05-4587-8472-0f3264c09265', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.440322 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-0fc92a1d-2d05-4587-8472-0f3264c09265', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.768557 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'idempotency_key': 'stainless-python-retry-0fc92a1d-2d05-4587-8472-0f3264c09265', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncBatches.test_streaming_response_delete[strict] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:448: in test_streaming_response_delete async with async_client.messages.batches.with_streaming_response.delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:526: in delete return await self._delete( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:2070: in delete return await self.request(cast_to, opts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-4b029697-1862-4ee8-8886-6c5c3ab8fe98', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.461769 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-4b029697-1862-4ee8-8886-6c5c3ab8fe98', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id in 0.798794 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'delete', 'url': '/v1/messages/batches/message_batch_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'idempotency_key': 'stainless-python-retry-4b029697-1862-4ee8-8886-6c5c3ab8fe98', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: DELETE http://127.0.0.1:4010/v1/messages/batches/message_batch_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________________ TestAsyncBatches.test_method_cancel[strict] __________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:468: in test_method_cancel batch = await async_client.messages.batches.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:573: in cancel return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'files': None, 'idempotency_key': 'stainless-python-retry-d18fab1d-ba91-4ea3-85fd-509a5d4f01a2', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.490993 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'files': None, 'idempotency_key': 'stainless-python-retry-d18fab1d-ba91-4ea3-85fd-509a5d4f01a2', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.995616 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'files': None, 'idempotency_key': 'stainless-python-retry-d18fab1d-ba91-4ea3-85fd-509a5d4f01a2', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ______________ TestAsyncBatches.test_raw_response_cancel[strict] _______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:475: in test_raw_response_cancel response = await async_client.messages.batches.with_raw_response.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:573: in cancel return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-6013284a-c041-4a01-8406-e3d5e234b2d1', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.473423 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-6013284a-c041-4a01-8406-e3d5e234b2d1', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.862715 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-6013284a-c041-4a01-8406-e3d5e234b2d1', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncBatches.test_streaming_response_cancel[strict] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/messages/test_batches.py:486: in test_streaming_response_cancel async with async_client.messages.batches.with_streaming_response.cancel( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/batches.py:573: in cancel return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-4d93c50f-3d20-4485-b0a4-5f305b2db2fa', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.406987 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-4d93c50f-3d20-4485-b0a4-5f305b2db2fa', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/batches/message_batch_id/cancel in 0.946935 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/batches/message_batch_id/cancel', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-4d93c50f-3d20-4485-b0a4-5f305b2db2fa', 'content': None, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/batches/message_batch_id/cancel DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________ TestAsyncCompletions.test_method_create_overload_1[strict] __________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:136: in test_method_create_overload_1 completion = await async_client.completions.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:785: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-05aabaeb-f56b-41ad-817b-b898b2da7f14', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.415652 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-05aabaeb-f56b-41ad-817b-b898b2da7f14', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.952784 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-05aabaeb-f56b-41ad-817b-b898b2da7f14', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __ TestAsyncCompletions.test_method_create_with_all_params_overload_1[strict] __ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:145: in test_method_create_with_all_params_overload_1 completion = await async_client.completions.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:785: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-b39a7457-47dc-4624-95a2-39231c22091b', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': False, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.381539 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-b39a7457-47dc-4624-95a2-39231c22091b', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': False, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.759089 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-b39a7457-47dc-4624-95a2-39231c22091b', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': False, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _______ TestAsyncCompletions.test_raw_response_create_overload_1[strict] _______ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:161: in test_raw_response_create_overload_1 response = await async_client.completions.with_raw_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:785: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-42ffbf51-0b87-47b8-a427-7a7d25886e00', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.464096 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-42ffbf51-0b87-47b8-a427-7a7d25886e00', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.858685 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-42ffbf51-0b87-47b8-a427-7a7d25886e00', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____ TestAsyncCompletions.test_streaming_response_create_overload_1[strict] ____ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:174: in test_streaming_response_create_overload_1 async with async_client.completions.with_streaming_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:785: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-23d35d8d-3574-4a42-b898-11274a718e4e', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.402240 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-23d35d8d-3574-4a42-b898-11274a718e4e', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.888788 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-23d35d8d-3574-4a42-b898-11274a718e4e', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________ TestAsyncCompletions.test_method_create_overload_2[strict] __________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:189: in test_method_create_overload_2 completion_stream = await async_client.completions.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:785: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-4869a1ef-4311-4e93-af6a-428ef537f3ee', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.459685 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-4869a1ef-4311-4e93-af6a-428ef537f3ee', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.952720 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-4869a1ef-4311-4e93-af6a-428ef537f3ee', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __ TestAsyncCompletions.test_method_create_with_all_params_overload_2[strict] __ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:199: in test_method_create_with_all_params_overload_2 completion_stream = await async_client.completions.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:785: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-c8f583d5-3e38-45f9-b649-521464b73083', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': True, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.405967 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-c8f583d5-3e38-45f9-b649-521464b73083', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': True, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.839319 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'anthropic-beta': 'string'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-c8f583d5-3e38-45f9-b649-521464b73083', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'stop_sequences': ['string'], 'stream': True, 'temperature': 1, 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _______ TestAsyncCompletions.test_raw_response_create_overload_2[strict] _______ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:215: in test_raw_response_create_overload_2 response = await async_client.completions.with_raw_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:785: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-db175a1f-1e12-418d-a771-c97a387726ec', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.428659 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-db175a1f-1e12-418d-a771-c97a387726ec', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.915634 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-db175a1f-1e12-418d-a771-c97a387726ec', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ____ TestAsyncCompletions.test_streaming_response_create_overload_2[strict] ____ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_completions.py:228: in test_streaming_response_create_overload_2 async with async_client.completions.with_streaming_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/completions.py:785: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-56ced0bd-6e4a-414f-a54c-8ed0882247a2', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.427495 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-56ced0bd-6e4a-414f-a54c-8ed0882247a2', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/complete in 0.981253 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/complete', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': 600, 'files': None, 'idempotency_key': 'stainless-python-retry-56ced0bd-6e4a-414f-a54c-8ed0882247a2', 'content': None, 'json_data': {'max_tokens_to_sample': 256, 'model': 'claude-opus-4-5-20251101', 'prompt': '\n\nHuman: Hello, world!\n\nAssistant:', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/complete DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncMessages.test_method_create_overload_1[strict] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:414: in test_method_create_overload_1 message = await async_client.messages.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2331: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-79030709-84ab-4b2d-bacc-278785d56d30', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.403493 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-79030709-84ab-4b2d-bacc-278785d56d30', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.997542 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-79030709-84ab-4b2d-bacc-278785d56d30', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___ TestAsyncMessages.test_method_create_with_all_params_overload_1[strict] ____ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:428: in test_method_create_with_all_params_overload_1 message = await async_client.messages.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2331: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-d652390b-b06c-4803-91c4-087a67d91575', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': False, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.430471 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-d652390b-b06c-4803-91c4-087a67d91575', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': False, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.967501 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-d652390b-b06c-4803-91c4-087a67d91575', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': False, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ________ TestAsyncMessages.test_raw_response_create_overload_1[strict] _________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:503: in test_raw_response_create_overload_1 response = await async_client.messages.with_raw_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2331: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-4fd73f8d-72b8-4f25-a6f6-a477ece4152e', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.428296 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-4fd73f8d-72b8-4f25-a6f6-a477ece4152e', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.915026 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-4fd73f8d-72b8-4f25-a6f6-a477ece4152e', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _____ TestAsyncMessages.test_streaming_response_create_overload_1[strict] ______ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:521: in test_streaming_response_create_overload_1 async with async_client.messages.with_streaming_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2331: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-2a2ef0b5-7578-4b69-9e31-2770c61c4d08', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.497781 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-2a2ef0b5-7578-4b69-9e31-2770c61c4d08', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.766103 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-2a2ef0b5-7578-4b69-9e31-2770c61c4d08', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncMessages.test_method_create_overload_2[strict] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:541: in test_method_create_overload_2 message_stream = await async_client.messages.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2331: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-e26ad787-23be-4e5c-9179-3e2ca07c202f', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.440166 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-e26ad787-23be-4e5c-9179-3e2ca07c202f', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.854835 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-e26ad787-23be-4e5c-9179-3e2ca07c202f', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___ TestAsyncMessages.test_method_create_with_all_params_overload_2[strict] ____ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:556: in test_method_create_with_all_params_overload_2 message_stream = await async_client.messages.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2331: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-4c41ccfb-40ce-4fa3-9aa3-cc488c3d6eb5', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': True, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.474916 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-4c41ccfb-40ce-4fa3-9aa3-cc488c3d6eb5', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': True, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.907893 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'files': None, 'idempotency_key': 'stainless-python-retry-4c41ccfb-40ce-4fa3-9aa3-cc488c3d6eb5', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'metadata': {'user_id': '13803d75-b4b5-4c3e-b2a2-6f21399b021b'}, 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'service_tier': 'auto', 'stop_sequences': ['string'], 'stream': True, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'temperature': 1, 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}], 'top_k': 5, 'top_p': 0.7}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ________ TestAsyncMessages.test_raw_response_create_overload_2[strict] _________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:631: in test_raw_response_create_overload_2 response = await async_client.messages.with_raw_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2331: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-e6d5a1ee-87d2-484c-b161-f449101220fa', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.433703 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-e6d5a1ee-87d2-484c-b161-f449101220fa', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.914111 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-e6d5a1ee-87d2-484c-b161-f449101220fa', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _____ TestAsyncMessages.test_streaming_response_create_overload_2[strict] ______ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:649: in test_streaming_response_create_overload_2 async with async_client.messages.with_streaming_response.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2331: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-35111d0c-97d4-402b-906d-6a55ca983fb1', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.382904 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-35111d0c-97d4-402b-906d-6a55ca983fb1', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.921711 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-35111d0c-97d4-402b-906d-6a55ca983fb1', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'content': 'Hello, world', 'role': 'user'}], 'model': 'claude-sonnet-4-5-20250929', 'stream': True}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncMessages.test_deprecated_model_warning[strict] ____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:672: in test_deprecated_model_warning await async_client.messages.create( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2331: in create return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-5b600802-0652-489a-9b4d-e9e1799f7a91', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'role': 'user', 'content': 'Hello'}], 'model': 'claude-1.3'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.452230 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-5b600802-0652-489a-9b4d-e9e1799f7a91', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'role': 'user', 'content': 'Hello'}], 'model': 'claude-1.3'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages in 0.915151 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages', 'timeout': Timeout(connect=5.0, read=600, write=600, pool=600), 'files': None, 'idempotency_key': 'stainless-python-retry-5b600802-0652-489a-9b4d-e9e1799f7a91', 'content': None, 'json_data': {'max_tokens': 1024, 'messages': [{'role': 'user', 'content': 'Hello'}], 'model': 'claude-1.3'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ______________ TestAsyncMessages.test_method_count_tokens[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:680: in test_method_count_tokens message = await async_client.messages.count_tokens( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2815: in count_tokens return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-c5697899-1073-4910-8295-948ad72b4977', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/count_tokens in 0.404890 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-c5697899-1073-4910-8295-948ad72b4977', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/count_tokens in 0.833772 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-c5697899-1073-4910-8295-948ad72b4977', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ______ TestAsyncMessages.test_method_count_tokens_with_all_params[strict] ______ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:693: in test_method_count_tokens_with_all_params message = await async_client.messages.count_tokens( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2815: in count_tokens return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-9fd3b865-3698-4452-8c3a-88796c60f00e', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101', 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/count_tokens in 0.409853 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-9fd3b865-3698-4452-8c3a-88796c60f00e', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101', 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/count_tokens in 0.953944 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'files': None, 'idempotency_key': 'stainless-python-retry-9fd3b865-3698-4452-8c3a-88796c60f00e', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101', 'output_config': {'format': {'schema': {'foo': 'bar'}, 'type': 'json_schema'}}, 'system': [{'text': "Today's date is 2024-06-01.", 'type': 'text', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'citations': [{'cited_text': 'cited_text', 'document_index': 0, 'document_title': 'x', 'end_char_index': 0, 'start_char_index': 0, 'type': 'char_location'}]}], 'thinking': {'budget_tokens': 1024, 'type': 'enabled'}, 'tool_choice': {'type': 'auto', 'disable_parallel_tool_use': True}, 'tools': [{'input_schema': {'type': 'object', 'properties': {'location': 'bar', 'unit': 'bar'}, 'required': ['location']}, 'name': 'name', 'cache_control': {'type': 'ephemeral', 'ttl': '5m'}, 'description': 'Get the current weather in a given location', 'strict': True, 'type': 'custom'}]}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncMessages.test_raw_response_count_tokens[strict] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:760: in test_raw_response_count_tokens response = await async_client.messages.with_raw_response.count_tokens( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2815: in count_tokens return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-2fd84ac3-d7fe-4dab-b80c-26f0c0ecb8c5', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/count_tokens in 0.481290 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-2fd84ac3-d7fe-4dab-b80c-26f0c0ecb8c5', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/count_tokens in 0.953487 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'true'}, 'files': None, 'idempotency_key': 'stainless-python-retry-2fd84ac3-d7fe-4dab-b80c-26f0c0ecb8c5', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ________ TestAsyncMessages.test_streaming_response_count_tokens[strict] ________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_messages.py:777: in test_streaming_response_count_tokens async with async_client.messages.with_streaming_response.count_tokens( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/messages/messages.py:2815: in count_tokens return await self._post( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1992: in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-e6bc6609-b9c9-4b4d-b28b-ffea0ed0de1a', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/count_tokens in 0.396555 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-e6bc6609-b9c9-4b4d-b28b-ffea0ed0de1a', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/messages/count_tokens in 0.831018 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'post', 'url': '/v1/messages/count_tokens', 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'files': None, 'idempotency_key': 'stainless-python-retry-e6bc6609-b9c9-4b4d-b28b-ffea0ed0de1a', 'content': None, 'json_data': {'messages': [{'content': 'string', 'role': 'user'}], 'model': 'claude-opus-4-5-20251101'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: POST http://127.0.0.1:4010/v1/messages/count_tokens DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________________ TestAsyncModels.test_method_retrieve[strict] _________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:110: in test_method_retrieve model = await async_client.models.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:212: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id in 0.411622 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id in 0.922729 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _________ TestAsyncModels.test_method_retrieve_with_all_params[strict] _________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:117: in test_method_retrieve_with_all_params model = await async_client.models.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:212: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id in 0.425420 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id in 0.895543 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'anthropic-beta': 'string'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ______________ TestAsyncModels.test_raw_response_retrieve[strict] ______________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:125: in test_raw_response_retrieve response = await async_client.models.with_raw_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:212: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id in 0.425600 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id in 0.861575 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'true'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncModels.test_streaming_response_retrieve[strict] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:136: in test_streaming_response_retrieve async with async_client.models.with_streaming_response.retrieve( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/resources/models.py:212: in retrieve return await self._get( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1923: in get return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id in 0.433457 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models/model_id in 0.961593 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models/model_id', 'headers': {'X-Stainless-Raw-Response': 'stream'}} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models/model_id DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________________ TestAsyncModels.test_method_list[strict] ___________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:156: in test_method_list model = await async_client.models.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7de4cbf0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models in 0.471136 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7de4cbf0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models in 0.972034 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {}, 'post_parser': ._parser at 0x7f8c7de4cbf0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ___________ TestAsyncModels.test_method_list_with_all_params[strict] ___________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:161: in test_method_list_with_all_params model = await async_client.models.list( ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7dfc3480>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models in 0.397222 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7dfc3480>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models in 0.840105 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {'after_id': 'after_id', 'before_id': 'before_id', 'limit': 1}, 'headers': {'anthropic-beta': 'string'}, 'post_parser': ._parser at 0x7f8c7dfc3480>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models?after_id=after_id&before_id=before_id&limit=1 DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error ________________ TestAsyncModels.test_raw_response_list[strict] ________________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:171: in test_raw_response_list response = await async_client.models.with_raw_response.list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_legacy_response.py:404: in wrapped return cast(LegacyAPIResponse[R], await func(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7de4d220>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models in 0.399174 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7de4d220>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models in 0.860512 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'true'}, 'post_parser': ._parser at 0x7f8c7de4d220>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error _____________ TestAsyncModels.test_streaming_response_list[strict] _____________ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:101: in map_httpcore_exceptions yield /usr/lib/python3.14/site-packages/httpx/_transports/default.py:394: in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:256: in handle_async_request raise exc from None /usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py:236: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:101: in handle_async_request raise exc /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:78: in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_async/connection.py:124: in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpcore/_backends/auto.py:31: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py:113: in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpcore/_exceptions.py:14: in map_exceptions raise to_exc(exc) from exc E httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1712: in request response = await self._client.send( /usr/lib/python3.14/site-packages/httpx/_client.py:1629: in send response = await self._send_handling_auth( /usr/lib/python3.14/site-packages/httpx/_client.py:1657: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.14/site-packages/httpx/_client.py:1694: in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_client.py:1730: in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.14/site-packages/httpx/_transports/default.py:393: in handle_async_request with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib64/python3.14/contextlib.py:162: in __exit__ self.gen.throw(value) /usr/lib/python3.14/site-packages/httpx/_transports/default.py:118: in map_httpcore_exceptions raise mapped_exc(message) from exc E httpx.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: tests/api_resources/test_models.py:180: in test_streaming_response_list async with async_client.models.with_streaming_response.list() as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_response.py:674: in __aenter__ self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:311: in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py:1744: in request raise APIConnectionError(request=request) from err E anthropic.APIConnectionError: Connection error. ------------------------------ Captured log call ------------------------------- DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7df23cc0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1798 2 retries left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models in 0.398779 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7df23cc0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1796 1 retry left INFO anthropic._base_client:_base_client.py:1801 Retrying request to /v1/models in 0.871651 seconds DEBUG anthropic._base_client:_base_client.py:497 Request options: {'method': 'get', 'url': '/v1/models', 'params': {}, 'headers': {'X-Stainless-Raw-Response': 'stream'}, 'post_parser': ._parser at 0x7f8c7df23cc0>, 'json_data': None} DEBUG anthropic._base_client:_base_client.py:1708 Sending HTTP Request: GET http://127.0.0.1:4010/v1/models DEBUG anthropic._base_client:_base_client.py:1732 Encountered Exception Traceback (most recent call last): File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pool_request.request ^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectError: All connection attempts failed The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/python-anthropic-0.77.0-build/BUILDROOT/usr/lib/python3.14/site-packages/anthropic/_base_client.py", line 1712, in request response = await self._client.send( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send response = await self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth response = await self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects response = await self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request response = await transport.handle_async_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request with map_httpcore_exceptions(): ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib64/python3.14/contextlib.py", line 162, in __exit__ self.gen.throw(value) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectError: All connection attempts failed DEBUG anthropic._base_client:_base_client.py:1743 Raising connection error __________________ TestSyncRunTools.test_streaming_call_sync ___________________ tests/lib/tools/test_runners.py:283: in test_streaming_call_sync last_response_messsage = make_stream_snapshot_request( tests/lib/snapshots.py:108: in make_stream_snapshot_request assert is_list(response_contents) ^^^^^^^^^^^^^^^^^^^^^^^^^^ E AssertionError =========================== short test summary info ============================ FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_method_retrieve[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_method_retrieve_with_all_params[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_raw_response_retrieve[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_streaming_response_retrieve[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_method_list[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_method_list_with_all_params[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_raw_response_list[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_streaming_response_list[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_method_delete[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_method_delete_with_all_params[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_raw_response_delete[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_streaming_response_delete[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_method_cancel[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_method_cancel_with_all_params[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_raw_response_cancel[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_streaming_response_cancel[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_method_retrieve[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_method_retrieve_with_all_params[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_raw_response_retrieve[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_streaming_response_retrieve[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_method_list[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_method_list_with_all_params[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_raw_response_list[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_streaming_response_list[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_method_delete[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_method_delete_with_all_params[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_raw_response_delete[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_streaming_response_delete[loose] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_method_list[loose] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_method_list_with_all_params[loose] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_raw_response_list[loose] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_streaming_response_list[loose] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_method_delete[loose] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_method_delete_with_all_params[loose] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_raw_response_delete[loose] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_streaming_response_delete[loose] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_method_retrieve_metadata[loose] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_method_retrieve_metadata_with_all_params[loose] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_raw_response_retrieve_metadata[loose] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_streaming_response_retrieve_metadata[loose] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_method_upload[loose] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_method_upload_with_all_params[loose] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_raw_response_upload[loose] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_streaming_response_upload[loose] FAILED tests/api_resources/beta/test_models.py::TestModels::test_method_retrieve[loose] FAILED tests/api_resources/beta/test_models.py::TestModels::test_method_retrieve_with_all_params[loose] FAILED tests/api_resources/beta/test_models.py::TestModels::test_raw_response_retrieve[loose] FAILED tests/api_resources/beta/test_models.py::TestModels::test_streaming_response_retrieve[loose] FAILED tests/api_resources/beta/test_models.py::TestModels::test_method_list[loose] FAILED tests/api_resources/beta/test_models.py::TestModels::test_method_list_with_all_params[loose] FAILED tests/api_resources/beta/test_models.py::TestModels::test_raw_response_list[loose] FAILED tests/api_resources/beta/test_models.py::TestModels::test_streaming_response_list[loose] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_method_retrieve[loose] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_method_retrieve_with_all_params[loose] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_raw_response_retrieve[loose] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_streaming_response_retrieve[loose] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_method_list[loose] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_method_list_with_all_params[loose] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_raw_response_list[loose] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_streaming_response_list[loose] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_method_delete[loose] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_method_delete_with_all_params[loose] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_raw_response_delete[loose] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_streaming_response_delete[loose] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_method_create[loose] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_raw_response_create[loose] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_streaming_response_create[loose] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_method_retrieve[loose] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_raw_response_retrieve[loose] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_streaming_response_retrieve[loose] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_method_list[loose] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_method_list_with_all_params[loose] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_raw_response_list[loose] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_streaming_response_list[loose] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_method_delete[loose] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_raw_response_delete[loose] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_streaming_response_delete[loose] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_method_cancel[loose] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_raw_response_cancel[loose] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_streaming_response_cancel[loose] FAILED tests/api_resources/test_completions.py::TestCompletions::test_method_create_overload_1[loose] FAILED tests/api_resources/test_completions.py::TestCompletions::test_method_create_with_all_params_overload_1[loose] FAILED tests/api_resources/test_completions.py::TestCompletions::test_raw_response_create_overload_1[loose] FAILED tests/api_resources/test_completions.py::TestCompletions::test_streaming_response_create_overload_1[loose] FAILED tests/api_resources/test_completions.py::TestCompletions::test_method_create_overload_2[loose] FAILED tests/api_resources/test_completions.py::TestCompletions::test_method_create_with_all_params_overload_2[loose] FAILED tests/api_resources/test_completions.py::TestCompletions::test_raw_response_create_overload_2[loose] FAILED tests/api_resources/test_completions.py::TestCompletions::test_streaming_response_create_overload_2[loose] FAILED tests/api_resources/test_messages.py::TestMessages::test_method_create_overload_1[loose] FAILED tests/api_resources/test_messages.py::TestMessages::test_method_create_with_all_params_overload_1[loose] FAILED tests/api_resources/test_messages.py::TestMessages::test_raw_response_create_overload_1[loose] FAILED tests/api_resources/test_messages.py::TestMessages::test_streaming_response_create_overload_1[loose] FAILED tests/api_resources/test_messages.py::TestMessages::test_method_create_overload_2[loose] FAILED tests/api_resources/test_messages.py::TestMessages::test_method_create_with_all_params_overload_2[loose] FAILED tests/api_resources/test_messages.py::TestMessages::test_raw_response_create_overload_2[loose] FAILED tests/api_resources/test_messages.py::TestMessages::test_streaming_response_create_overload_2[loose] FAILED tests/api_resources/test_messages.py::TestMessages::test_deprecated_model_warning[loose] FAILED tests/api_resources/test_messages.py::TestMessages::test_method_count_tokens[loose] FAILED tests/api_resources/test_messages.py::TestMessages::test_method_count_tokens_with_all_params[loose] FAILED tests/api_resources/test_messages.py::TestMessages::test_raw_response_count_tokens[loose] FAILED tests/api_resources/test_messages.py::TestMessages::test_streaming_response_count_tokens[loose] FAILED tests/api_resources/test_models.py::TestModels::test_method_retrieve[loose] FAILED tests/api_resources/test_models.py::TestModels::test_method_retrieve_with_all_params[loose] FAILED tests/api_resources/test_models.py::TestModels::test_raw_response_retrieve[loose] FAILED tests/api_resources/test_models.py::TestModels::test_streaming_response_retrieve[loose] FAILED tests/api_resources/test_models.py::TestModels::test_method_list[loose] FAILED tests/api_resources/test_models.py::TestModels::test_method_list_with_all_params[loose] FAILED tests/api_resources/test_models.py::TestModels::test_raw_response_list[loose] FAILED tests/api_resources/test_models.py::TestModels::test_streaming_response_list[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_method_retrieve[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_method_retrieve_with_all_params[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_raw_response_retrieve[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_streaming_response_retrieve[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_method_list[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_method_list_with_all_params[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_raw_response_list[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_streaming_response_list[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_method_delete[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_method_delete_with_all_params[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_raw_response_delete[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_streaming_response_delete[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_method_cancel[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_method_cancel_with_all_params[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_raw_response_cancel[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestBatches::test_streaming_response_cancel[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_method_retrieve[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_method_retrieve_with_all_params[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_raw_response_retrieve[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_streaming_response_retrieve[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_method_list[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_method_list_with_all_params[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_raw_response_list[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_streaming_response_list[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_method_delete[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_method_delete_with_all_params[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_raw_response_delete[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestVersions::test_streaming_response_delete[strict] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_method_list[strict] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_method_list_with_all_params[strict] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_raw_response_list[strict] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_streaming_response_list[strict] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_method_delete[strict] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_method_delete_with_all_params[strict] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_raw_response_delete[strict] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_streaming_response_delete[strict] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_method_retrieve_metadata[strict] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_method_retrieve_metadata_with_all_params[strict] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_raw_response_retrieve_metadata[strict] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_streaming_response_retrieve_metadata[strict] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_method_upload[strict] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_method_upload_with_all_params[strict] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_raw_response_upload[strict] FAILED tests/api_resources/beta/test_files.py::TestFiles::test_streaming_response_upload[strict] FAILED tests/api_resources/beta/test_models.py::TestModels::test_method_retrieve[strict] FAILED tests/api_resources/beta/test_models.py::TestModels::test_method_retrieve_with_all_params[strict] FAILED tests/api_resources/beta/test_models.py::TestModels::test_raw_response_retrieve[strict] FAILED tests/api_resources/beta/test_models.py::TestModels::test_streaming_response_retrieve[strict] FAILED tests/api_resources/beta/test_models.py::TestModels::test_method_list[strict] FAILED tests/api_resources/beta/test_models.py::TestModels::test_method_list_with_all_params[strict] FAILED tests/api_resources/beta/test_models.py::TestModels::test_raw_response_list[strict] FAILED tests/api_resources/beta/test_models.py::TestModels::test_streaming_response_list[strict] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_method_retrieve[strict] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_method_retrieve_with_all_params[strict] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_raw_response_retrieve[strict] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_streaming_response_retrieve[strict] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_method_list[strict] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_method_list_with_all_params[strict] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_raw_response_list[strict] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_streaming_response_list[strict] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_method_delete[strict] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_method_delete_with_all_params[strict] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_raw_response_delete[strict] FAILED tests/api_resources/beta/test_skills.py::TestSkills::test_streaming_response_delete[strict] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_method_create[strict] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_raw_response_create[strict] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_streaming_response_create[strict] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_method_retrieve[strict] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_raw_response_retrieve[strict] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_streaming_response_retrieve[strict] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_method_list[strict] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_method_list_with_all_params[strict] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_raw_response_list[strict] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_streaming_response_list[strict] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_method_delete[strict] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_raw_response_delete[strict] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_streaming_response_delete[strict] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_method_cancel[strict] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_raw_response_cancel[strict] FAILED tests/api_resources/messages/test_batches.py::TestBatches::test_streaming_response_cancel[strict] FAILED tests/api_resources/test_completions.py::TestCompletions::test_method_create_overload_1[strict] FAILED tests/api_resources/test_completions.py::TestCompletions::test_method_create_with_all_params_overload_1[strict] FAILED tests/api_resources/test_completions.py::TestCompletions::test_raw_response_create_overload_1[strict] FAILED tests/api_resources/test_completions.py::TestCompletions::test_streaming_response_create_overload_1[strict] FAILED tests/api_resources/test_completions.py::TestCompletions::test_method_create_overload_2[strict] FAILED tests/api_resources/test_completions.py::TestCompletions::test_method_create_with_all_params_overload_2[strict] FAILED tests/api_resources/test_completions.py::TestCompletions::test_raw_response_create_overload_2[strict] FAILED tests/api_resources/test_completions.py::TestCompletions::test_streaming_response_create_overload_2[strict] FAILED tests/api_resources/test_messages.py::TestMessages::test_method_create_overload_1[strict] FAILED tests/api_resources/test_messages.py::TestMessages::test_method_create_with_all_params_overload_1[strict] FAILED tests/api_resources/test_messages.py::TestMessages::test_raw_response_create_overload_1[strict] FAILED tests/api_resources/test_messages.py::TestMessages::test_streaming_response_create_overload_1[strict] FAILED tests/api_resources/test_messages.py::TestMessages::test_method_create_overload_2[strict] FAILED tests/api_resources/test_messages.py::TestMessages::test_method_create_with_all_params_overload_2[strict] FAILED tests/api_resources/test_messages.py::TestMessages::test_raw_response_create_overload_2[strict] FAILED tests/api_resources/test_messages.py::TestMessages::test_streaming_response_create_overload_2[strict] FAILED tests/api_resources/test_messages.py::TestMessages::test_deprecated_model_warning[strict] FAILED tests/api_resources/test_messages.py::TestMessages::test_method_count_tokens[strict] FAILED tests/api_resources/test_messages.py::TestMessages::test_method_count_tokens_with_all_params[strict] FAILED tests/api_resources/test_messages.py::TestMessages::test_raw_response_count_tokens[strict] FAILED tests/api_resources/test_messages.py::TestMessages::test_streaming_response_count_tokens[strict] FAILED tests/api_resources/test_models.py::TestModels::test_method_retrieve[strict] FAILED tests/api_resources/test_models.py::TestModels::test_method_retrieve_with_all_params[strict] FAILED tests/api_resources/test_models.py::TestModels::test_raw_response_retrieve[strict] FAILED tests/api_resources/test_models.py::TestModels::test_streaming_response_retrieve[strict] FAILED tests/api_resources/test_models.py::TestModels::test_method_list[strict] FAILED tests/api_resources/test_models.py::TestModels::test_method_list_with_all_params[strict] FAILED tests/api_resources/test_models.py::TestModels::test_raw_response_list[strict] FAILED tests/api_resources/test_models.py::TestModels::test_streaming_response_list[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_retrieve[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_retrieve_with_all_params[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_raw_response_retrieve[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_streaming_response_retrieve[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_list[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_list_with_all_params[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_raw_response_list[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_streaming_response_list[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_delete[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_delete_with_all_params[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_raw_response_delete[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_streaming_response_delete[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_cancel[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_cancel_with_all_params[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_raw_response_cancel[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_streaming_response_cancel[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_method_retrieve[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_method_retrieve_with_all_params[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_raw_response_retrieve[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_streaming_response_retrieve[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_method_list[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_method_list_with_all_params[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_raw_response_list[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_streaming_response_list[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_method_delete[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_method_delete_with_all_params[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_raw_response_delete[loose] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_streaming_response_delete[loose] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_list[loose] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_list_with_all_params[loose] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_raw_response_list[loose] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_streaming_response_list[loose] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_delete[loose] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_delete_with_all_params[loose] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_raw_response_delete[loose] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_streaming_response_delete[loose] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_retrieve_metadata[loose] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_retrieve_metadata_with_all_params[loose] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_raw_response_retrieve_metadata[loose] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_streaming_response_retrieve_metadata[loose] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_upload[loose] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_upload_with_all_params[loose] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_raw_response_upload[loose] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_streaming_response_upload[loose] FAILED tests/api_resources/beta/test_models.py::TestAsyncModels::test_method_retrieve[loose] FAILED tests/api_resources/beta/test_models.py::TestAsyncModels::test_method_retrieve_with_all_params[loose] FAILED tests/api_resources/beta/test_models.py::TestAsyncModels::test_raw_response_retrieve[loose] FAILED tests/api_resources/beta/test_models.py::TestAsyncModels::test_streaming_response_retrieve[loose] FAILED tests/api_resources/beta/test_models.py::TestAsyncModels::test_method_list[loose] FAILED tests/api_resources/beta/test_models.py::TestAsyncModels::test_method_list_with_all_params[loose] FAILED tests/api_resources/beta/test_models.py::TestAsyncModels::test_raw_response_list[loose] FAILED tests/api_resources/beta/test_models.py::TestAsyncModels::test_streaming_response_list[loose] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_method_retrieve[loose] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_method_retrieve_with_all_params[loose] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_raw_response_retrieve[loose] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_streaming_response_retrieve[loose] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_method_list[loose] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_method_list_with_all_params[loose] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_raw_response_list[loose] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_streaming_response_list[loose] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_method_delete[loose] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_method_delete_with_all_params[loose] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_raw_response_delete[loose] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_streaming_response_delete[loose] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_method_create[loose] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_raw_response_create[loose] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_streaming_response_create[loose] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_method_retrieve[loose] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_raw_response_retrieve[loose] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_streaming_response_retrieve[loose] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_method_list[loose] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_method_list_with_all_params[loose] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_raw_response_list[loose] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_streaming_response_list[loose] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_method_delete[loose] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_raw_response_delete[loose] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_streaming_response_delete[loose] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_method_cancel[loose] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_raw_response_cancel[loose] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_streaming_response_cancel[loose] FAILED tests/api_resources/test_completions.py::TestAsyncCompletions::test_method_create_overload_1[loose] FAILED tests/api_resources/test_completions.py::TestAsyncCompletions::test_method_create_with_all_params_overload_1[loose] FAILED tests/api_resources/test_completions.py::TestAsyncCompletions::test_raw_response_create_overload_1[loose] FAILED tests/api_resources/test_completions.py::TestAsyncCompletions::test_streaming_response_create_overload_1[loose] FAILED tests/api_resources/test_completions.py::TestAsyncCompletions::test_method_create_overload_2[loose] FAILED tests/api_resources/test_completions.py::TestAsyncCompletions::test_method_create_with_all_params_overload_2[loose] FAILED tests/api_resources/test_completions.py::TestAsyncCompletions::test_raw_response_create_overload_2[loose] FAILED tests/api_resources/test_completions.py::TestAsyncCompletions::test_streaming_response_create_overload_2[loose] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_method_create_overload_1[loose] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_method_create_with_all_params_overload_1[loose] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_raw_response_create_overload_1[loose] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_streaming_response_create_overload_1[loose] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_method_create_overload_2[loose] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_method_create_with_all_params_overload_2[loose] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_raw_response_create_overload_2[loose] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_streaming_response_create_overload_2[loose] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_deprecated_model_warning[loose] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_method_count_tokens[loose] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_method_count_tokens_with_all_params[loose] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_raw_response_count_tokens[loose] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_streaming_response_count_tokens[loose] FAILED tests/api_resources/test_models.py::TestAsyncModels::test_method_retrieve[loose] FAILED tests/api_resources/test_models.py::TestAsyncModels::test_method_retrieve_with_all_params[loose] FAILED tests/api_resources/test_models.py::TestAsyncModels::test_raw_response_retrieve[loose] FAILED tests/api_resources/test_models.py::TestAsyncModels::test_streaming_response_retrieve[loose] FAILED tests/api_resources/test_models.py::TestAsyncModels::test_method_list[loose] FAILED tests/api_resources/test_models.py::TestAsyncModels::test_method_list_with_all_params[loose] FAILED tests/api_resources/test_models.py::TestAsyncModels::test_raw_response_list[loose] FAILED tests/api_resources/test_models.py::TestAsyncModels::test_streaming_response_list[loose] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_retrieve[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_retrieve_with_all_params[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_raw_response_retrieve[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_streaming_response_retrieve[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_list[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_list_with_all_params[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_raw_response_list[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_streaming_response_list[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_delete[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_delete_with_all_params[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_raw_response_delete[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_streaming_response_delete[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_cancel[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_cancel_with_all_params[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_raw_response_cancel[strict] FAILED tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_streaming_response_cancel[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_method_retrieve[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_method_retrieve_with_all_params[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_raw_response_retrieve[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_streaming_response_retrieve[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_method_list[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_method_list_with_all_params[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_raw_response_list[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_streaming_response_list[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_method_delete[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_method_delete_with_all_params[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_raw_response_delete[strict] FAILED tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_streaming_response_delete[strict] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_list[strict] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_list_with_all_params[strict] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_raw_response_list[strict] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_streaming_response_list[strict] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_delete[strict] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_delete_with_all_params[strict] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_raw_response_delete[strict] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_streaming_response_delete[strict] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_retrieve_metadata[strict] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_retrieve_metadata_with_all_params[strict] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_raw_response_retrieve_metadata[strict] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_streaming_response_retrieve_metadata[strict] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_upload[strict] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_upload_with_all_params[strict] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_raw_response_upload[strict] FAILED tests/api_resources/beta/test_files.py::TestAsyncFiles::test_streaming_response_upload[strict] FAILED tests/api_resources/beta/test_models.py::TestAsyncModels::test_method_retrieve[strict] FAILED tests/api_resources/beta/test_models.py::TestAsyncModels::test_method_retrieve_with_all_params[strict] FAILED tests/api_resources/beta/test_models.py::TestAsyncModels::test_raw_response_retrieve[strict] FAILED tests/api_resources/beta/test_models.py::TestAsyncModels::test_streaming_response_retrieve[strict] FAILED tests/api_resources/beta/test_models.py::TestAsyncModels::test_method_list[strict] FAILED tests/api_resources/beta/test_models.py::TestAsyncModels::test_method_list_with_all_params[strict] FAILED tests/api_resources/beta/test_models.py::TestAsyncModels::test_raw_response_list[strict] FAILED tests/api_resources/beta/test_models.py::TestAsyncModels::test_streaming_response_list[strict] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_method_retrieve[strict] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_method_retrieve_with_all_params[strict] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_raw_response_retrieve[strict] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_streaming_response_retrieve[strict] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_method_list[strict] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_method_list_with_all_params[strict] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_raw_response_list[strict] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_streaming_response_list[strict] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_method_delete[strict] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_method_delete_with_all_params[strict] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_raw_response_delete[strict] FAILED tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_streaming_response_delete[strict] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_method_create[strict] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_raw_response_create[strict] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_streaming_response_create[strict] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_method_retrieve[strict] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_raw_response_retrieve[strict] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_streaming_response_retrieve[strict] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_method_list[strict] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_method_list_with_all_params[strict] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_raw_response_list[strict] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_streaming_response_list[strict] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_method_delete[strict] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_raw_response_delete[strict] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_streaming_response_delete[strict] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_method_cancel[strict] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_raw_response_cancel[strict] FAILED tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_streaming_response_cancel[strict] FAILED tests/api_resources/test_completions.py::TestAsyncCompletions::test_method_create_overload_1[strict] FAILED tests/api_resources/test_completions.py::TestAsyncCompletions::test_method_create_with_all_params_overload_1[strict] FAILED tests/api_resources/test_completions.py::TestAsyncCompletions::test_raw_response_create_overload_1[strict] FAILED tests/api_resources/test_completions.py::TestAsyncCompletions::test_streaming_response_create_overload_1[strict] FAILED tests/api_resources/test_completions.py::TestAsyncCompletions::test_method_create_overload_2[strict] FAILED tests/api_resources/test_completions.py::TestAsyncCompletions::test_method_create_with_all_params_overload_2[strict] FAILED tests/api_resources/test_completions.py::TestAsyncCompletions::test_raw_response_create_overload_2[strict] FAILED tests/api_resources/test_completions.py::TestAsyncCompletions::test_streaming_response_create_overload_2[strict] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_method_create_overload_1[strict] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_method_create_with_all_params_overload_1[strict] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_raw_response_create_overload_1[strict] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_streaming_response_create_overload_1[strict] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_method_create_overload_2[strict] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_method_create_with_all_params_overload_2[strict] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_raw_response_create_overload_2[strict] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_streaming_response_create_overload_2[strict] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_deprecated_model_warning[strict] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_method_count_tokens[strict] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_method_count_tokens_with_all_params[strict] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_raw_response_count_tokens[strict] FAILED tests/api_resources/test_messages.py::TestAsyncMessages::test_streaming_response_count_tokens[strict] FAILED tests/api_resources/test_models.py::TestAsyncModels::test_method_retrieve[strict] FAILED tests/api_resources/test_models.py::TestAsyncModels::test_method_retrieve_with_all_params[strict] FAILED tests/api_resources/test_models.py::TestAsyncModels::test_raw_response_retrieve[strict] FAILED tests/api_resources/test_models.py::TestAsyncModels::test_streaming_response_retrieve[strict] FAILED tests/api_resources/test_models.py::TestAsyncModels::test_method_list[strict] FAILED tests/api_resources/test_models.py::TestAsyncModels::test_method_list_with_all_params[strict] FAILED tests/api_resources/test_models.py::TestAsyncModels::test_raw_response_list[strict] FAILED tests/api_resources/test_models.py::TestAsyncModels::test_streaming_response_list[strict] FAILED tests/lib/tools/test_runners.py::TestSyncRunTools::test_streaming_call_sync ERROR tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_retrieve[aiohttp] ERROR tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_retrieve_with_all_params[aiohttp] ERROR tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_raw_response_retrieve[aiohttp] ERROR tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_streaming_response_retrieve[aiohttp] ERROR tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_path_params_retrieve[aiohttp] ERROR tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_list[aiohttp] ERROR tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_list_with_all_params[aiohttp] ERROR tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_raw_response_list[aiohttp] ERROR tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_streaming_response_list[aiohttp] ERROR tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_delete[aiohttp] ERROR tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_delete_with_all_params[aiohttp] ERROR tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_raw_response_delete[aiohttp] ERROR tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_streaming_response_delete[aiohttp] ERROR tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_path_params_delete[aiohttp] ERROR tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_cancel[aiohttp] ERROR tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_method_cancel_with_all_params[aiohttp] ERROR tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_raw_response_cancel[aiohttp] ERROR tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_streaming_response_cancel[aiohttp] ERROR tests/api_resources/beta/messages/test_batches.py::TestAsyncBatches::test_path_params_cancel[aiohttp] ERROR tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_method_retrieve[aiohttp] ERROR tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_method_retrieve_with_all_params[aiohttp] ERROR tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_raw_response_retrieve[aiohttp] ERROR tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_streaming_response_retrieve[aiohttp] ERROR tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_path_params_retrieve[aiohttp] ERROR tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_method_list[aiohttp] ERROR tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_method_list_with_all_params[aiohttp] ERROR tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_raw_response_list[aiohttp] ERROR tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_streaming_response_list[aiohttp] ERROR tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_path_params_list[aiohttp] ERROR tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_method_delete[aiohttp] ERROR tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_method_delete_with_all_params[aiohttp] ERROR tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_raw_response_delete[aiohttp] ERROR tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_streaming_response_delete[aiohttp] ERROR tests/api_resources/beta/skills/test_versions.py::TestAsyncVersions::test_path_params_delete[aiohttp] ERROR tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_list[aiohttp] ERROR tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_list_with_all_params[aiohttp] ERROR tests/api_resources/beta/test_files.py::TestAsyncFiles::test_raw_response_list[aiohttp] ERROR tests/api_resources/beta/test_files.py::TestAsyncFiles::test_streaming_response_list[aiohttp] ERROR tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_delete[aiohttp] ERROR tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_delete_with_all_params[aiohttp] ERROR tests/api_resources/beta/test_files.py::TestAsyncFiles::test_raw_response_delete[aiohttp] ERROR tests/api_resources/beta/test_files.py::TestAsyncFiles::test_streaming_response_delete[aiohttp] ERROR tests/api_resources/beta/test_files.py::TestAsyncFiles::test_path_params_delete[aiohttp] ERROR tests/api_resources/beta/test_files.py::TestAsyncFiles::test_path_params_download[aiohttp] ERROR tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_retrieve_metadata[aiohttp] ERROR tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_retrieve_metadata_with_all_params[aiohttp] ERROR tests/api_resources/beta/test_files.py::TestAsyncFiles::test_raw_response_retrieve_metadata[aiohttp] ERROR tests/api_resources/beta/test_files.py::TestAsyncFiles::test_streaming_response_retrieve_metadata[aiohttp] ERROR tests/api_resources/beta/test_files.py::TestAsyncFiles::test_path_params_retrieve_metadata[aiohttp] ERROR tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_upload[aiohttp] ERROR tests/api_resources/beta/test_files.py::TestAsyncFiles::test_method_upload_with_all_params[aiohttp] ERROR tests/api_resources/beta/test_files.py::TestAsyncFiles::test_raw_response_upload[aiohttp] ERROR tests/api_resources/beta/test_files.py::TestAsyncFiles::test_streaming_response_upload[aiohttp] ERROR tests/api_resources/beta/test_messages.py::TestAsyncMessages::test_pydantic_error_in_create[aiohttp] ERROR tests/api_resources/beta/test_models.py::TestAsyncModels::test_method_retrieve[aiohttp] ERROR tests/api_resources/beta/test_models.py::TestAsyncModels::test_method_retrieve_with_all_params[aiohttp] ERROR tests/api_resources/beta/test_models.py::TestAsyncModels::test_raw_response_retrieve[aiohttp] ERROR tests/api_resources/beta/test_models.py::TestAsyncModels::test_streaming_response_retrieve[aiohttp] ERROR tests/api_resources/beta/test_models.py::TestAsyncModels::test_path_params_retrieve[aiohttp] ERROR tests/api_resources/beta/test_models.py::TestAsyncModels::test_method_list[aiohttp] ERROR tests/api_resources/beta/test_models.py::TestAsyncModels::test_method_list_with_all_params[aiohttp] ERROR tests/api_resources/beta/test_models.py::TestAsyncModels::test_raw_response_list[aiohttp] ERROR tests/api_resources/beta/test_models.py::TestAsyncModels::test_streaming_response_list[aiohttp] ERROR tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_method_retrieve[aiohttp] ERROR tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_method_retrieve_with_all_params[aiohttp] ERROR tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_raw_response_retrieve[aiohttp] ERROR tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_streaming_response_retrieve[aiohttp] ERROR tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_path_params_retrieve[aiohttp] ERROR tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_method_list[aiohttp] ERROR tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_method_list_with_all_params[aiohttp] ERROR tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_raw_response_list[aiohttp] ERROR tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_streaming_response_list[aiohttp] ERROR tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_method_delete[aiohttp] ERROR tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_method_delete_with_all_params[aiohttp] ERROR tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_raw_response_delete[aiohttp] ERROR tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_streaming_response_delete[aiohttp] ERROR tests/api_resources/beta/test_skills.py::TestAsyncSkills::test_path_params_delete[aiohttp] ERROR tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_method_create[aiohttp] ERROR tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_raw_response_create[aiohttp] ERROR tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_streaming_response_create[aiohttp] ERROR tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_method_retrieve[aiohttp] ERROR tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_raw_response_retrieve[aiohttp] ERROR tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_streaming_response_retrieve[aiohttp] ERROR tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_path_params_retrieve[aiohttp] ERROR tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_method_list[aiohttp] ERROR tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_method_list_with_all_params[aiohttp] ERROR tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_raw_response_list[aiohttp] ERROR tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_streaming_response_list[aiohttp] ERROR tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_method_delete[aiohttp] ERROR tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_raw_response_delete[aiohttp] ERROR tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_streaming_response_delete[aiohttp] ERROR tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_path_params_delete[aiohttp] ERROR tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_method_cancel[aiohttp] ERROR tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_raw_response_cancel[aiohttp] ERROR tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_streaming_response_cancel[aiohttp] ERROR tests/api_resources/messages/test_batches.py::TestAsyncBatches::test_path_params_cancel[aiohttp] ERROR tests/api_resources/test_completions.py::TestAsyncCompletions::test_method_create_overload_1[aiohttp] ERROR tests/api_resources/test_completions.py::TestAsyncCompletions::test_method_create_with_all_params_overload_1[aiohttp] ERROR tests/api_resources/test_completions.py::TestAsyncCompletions::test_raw_response_create_overload_1[aiohttp] ERROR tests/api_resources/test_completions.py::TestAsyncCompletions::test_streaming_response_create_overload_1[aiohttp] ERROR tests/api_resources/test_completions.py::TestAsyncCompletions::test_method_create_overload_2[aiohttp] ERROR tests/api_resources/test_completions.py::TestAsyncCompletions::test_method_create_with_all_params_overload_2[aiohttp] ERROR tests/api_resources/test_completions.py::TestAsyncCompletions::test_raw_response_create_overload_2[aiohttp] ERROR tests/api_resources/test_completions.py::TestAsyncCompletions::test_streaming_response_create_overload_2[aiohttp] ERROR tests/api_resources/test_messages.py::TestAsyncMessages::test_method_create_overload_1[aiohttp] ERROR tests/api_resources/test_messages.py::TestAsyncMessages::test_method_create_with_all_params_overload_1[aiohttp] ERROR tests/api_resources/test_messages.py::TestAsyncMessages::test_raw_response_create_overload_1[aiohttp] ERROR tests/api_resources/test_messages.py::TestAsyncMessages::test_streaming_response_create_overload_1[aiohttp] ERROR tests/api_resources/test_messages.py::TestAsyncMessages::test_method_create_overload_2[aiohttp] ERROR tests/api_resources/test_messages.py::TestAsyncMessages::test_method_create_with_all_params_overload_2[aiohttp] ERROR tests/api_resources/test_messages.py::TestAsyncMessages::test_raw_response_create_overload_2[aiohttp] ERROR tests/api_resources/test_messages.py::TestAsyncMessages::test_streaming_response_create_overload_2[aiohttp] ERROR tests/api_resources/test_messages.py::TestAsyncMessages::test_deprecated_model_warning[aiohttp] ERROR tests/api_resources/test_messages.py::TestAsyncMessages::test_method_count_tokens[aiohttp] ERROR tests/api_resources/test_messages.py::TestAsyncMessages::test_method_count_tokens_with_all_params[aiohttp] ERROR tests/api_resources/test_messages.py::TestAsyncMessages::test_raw_response_count_tokens[aiohttp] ERROR tests/api_resources/test_messages.py::TestAsyncMessages::test_streaming_response_count_tokens[aiohttp] ERROR tests/api_resources/test_models.py::TestAsyncModels::test_method_retrieve[aiohttp] ERROR tests/api_resources/test_models.py::TestAsyncModels::test_method_retrieve_with_all_params[aiohttp] ERROR tests/api_resources/test_models.py::TestAsyncModels::test_raw_response_retrieve[aiohttp] ERROR tests/api_resources/test_models.py::TestAsyncModels::test_streaming_response_retrieve[aiohttp] ERROR tests/api_resources/test_models.py::TestAsyncModels::test_path_params_retrieve[aiohttp] ERROR tests/api_resources/test_models.py::TestAsyncModels::test_method_list[aiohttp] ERROR tests/api_resources/test_models.py::TestAsyncModels::test_method_list_with_all_params[aiohttp] ERROR tests/api_resources/test_models.py::TestAsyncModels::test_raw_response_list[aiohttp] ERROR tests/api_resources/test_models.py::TestAsyncModels::test_streaming_response_list[aiohttp] ===== 437 failed, 652 passed, 136 skipped, 126 errors in 640.81s (0:10:40) ===== error: Bad exit status from /var/tmp/rpm-tmp.2xhn8B (%check) Bad exit status from /var/tmp/rpm-tmp.2xhn8B (%check) RPM build errors: Finish: rpmbuild python-anthropic-0.77.0-1.fc44.src.rpm Finish: build phase for python-anthropic-0.77.0-1.fc44.src.rpm INFO: chroot_scan: 1 files copied to /var/lib/copr-rpmbuild/results/chroot_scan INFO: /var/lib/mock/fedora-rawhide-x86_64-1770044012.124196/root/var/log/dnf5.log INFO: chroot_scan: creating tarball /var/lib/copr-rpmbuild/results/chroot_scan.tar.gz /bin/tar: Removing leading `/' from member names ERROR: Exception(/var/lib/copr-rpmbuild/results/python-anthropic-0.77.0-1.fc44.src.rpm) Config(fedora-rawhide-x86_64) 11 minutes 2 seconds INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results INFO: Cleaning up build root ('cleanup_on_failure=True') Start: clean chroot INFO: unmounting tmpfs. Finish: clean chroot ERROR: Command failed: # /usr/bin/systemd-nspawn -q -M d79dd3d42a3e46ee9be344ce4c24e294 -D /var/lib/mock/fedora-rawhide-x86_64-1770044012.124196/root -a -u mockbuild --capability=cap_ipc_lock --capability=cap_ipc_lock --bind=/tmp/mock-resolv.t8c8wtee:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;\007"' '--setenv=PS1= \s-\v\$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -ba --noprep --target x86_64 /builddir/build/originals/python-anthropic.spec' Copr build error: Build failed