oha icon indicating copy to clipboard operation
oha copied to clipboard

called `Result::unwrap()` on an `Err` value: "SendError(..)"

Open Kennytian opened this issue 1 year ago • 3 comments

oha http://localhost:4000 -n 1000000 -c 350

:921:45: at src/client.rs called Result::unwrap() on an Err value: "SendError(..)" panicked at src/client.rs:921:45: called Result::unwrap() on an Err value: "SendError(..)"

env: macOS 14.6.1 (23G93) CPU M1 8 cores brew --version Homebrew 4.3.17

Kennytian avatar Aug 21 '24 23:08 Kennytian

Could you provide oha's version? Because I don't have an Arm Mac, I tested on an Intel Mac but the error didn't occur. How frequently does this error happen in your environment?

hatoo avatar Aug 22 '24 11:08 hatoo

oha's

oha --version oha 1.4.6

Kennytian avatar Aug 22 '24 15:08 Kennytian

Hi, I am not sure if this is related. But I had to pass --ipv6 flag to have oha working toward my vite app running on port 5173 running on latest macOS. Without flag I got error [200] Connection refused (os error 61).

filiabel avatar Apr 01 '25 20:04 filiabel

@Kennytian Does this problem still occur for you with oha 1.10.0?

When I start a dummy server I get no errors on Apple Silicon with your command line.

When the connection isn't possible, I see the normal output plus

Error distribution:
  [1000000] Connection refused (os error 111)

so no panic.

reneleonhardt avatar Sep 06 '25 08:09 reneleonhardt