ogen icon indicating copy to clipboard operation
ogen copied to clipboard

Client. Head request convenient error parsing.

Open hiddenmarten opened this issue 10 months ago • 0 comments

I’m not sure whether this is a bug or intended behavior, so I’m opening this issue for clarification.

What happens: When Ogen-generated client code receives a non-success HTTP status, it fails to parse the response from a server.

Repro steps:

Clone and run the example app: https://github.com/hiddenmarten/ogen-head-example

Run the test called TestHead404Panic. These lines describe the unexpected parsing behavior.

Request: Could someone from the Ogen team confirm whether this is expected? If it’s a bug, I’d be happy to help fix it.

hiddenmarten avatar Apr 22 '25 20:04 hiddenmarten