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

downloadReportWithHttpInfo returns an already closed InputStream #102

Closed
willoakley opened this issue Jan 5, 2022 · 3 comments
Closed

Comments

@willoakley
Copy link

When calling the ReportDownloadsApi::downloadReportWithHttpInfo() the returned InputStream from getData() has been closed and cannot be read. The client examples suggest the stream should be readable.

I believe the stream is being closed deliberately by response.body().close() L1211 that was added to v0.0.36 to fix issue #21. The ApiClient::deserialise() function returns the response stream as-is but it is then closed as the response.body(). The closing of the body stream likely wants to be only for non-stream response types that have already been deserialised.

@willoakley
Copy link
Author

I see that pull request #98 should resolve this issue

@gnongsie
Copy link
Contributor

This issue has been fixed and released as part of v0.0.40.

@willoakley : Kindly confirm and close the ticket.

@willoakley
Copy link
Author

The issue has been successfully resolved, thanks.

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

No branches or pull requests

2 participants