Skip to content
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

[JAVA][RESTTEMPLATE-JAKARTA] - logResponse in ApiClient throw a FileNotFoundException when the response body is null #18701

Open
pcomp96 opened this issue May 17, 2024 · 0 comments

Comments

@pcomp96
Copy link

pcomp96 commented May 17, 2024

Description

I activated the debug into the ApiClient and when i receive a 404 status with an empty response body the .getBody throw an exception of type FileNotFound

image

openapi-generator version

7.5.0

OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix

Maybe a trycatch on the getBody() but is very dirty

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

No branches or pull requests

1 participant