Skip to content

Client. Head request convenient error parsing. #1450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hiddenmarten opened this issue Apr 22, 2025 · 0 comments
Open

Client. Head request convenient error parsing. #1450

hiddenmarten opened this issue Apr 22, 2025 · 0 comments

Comments

@hiddenmarten
Copy link

hiddenmarten commented Apr 22, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant