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

Include HTTP response body in error messages #99

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

Acconut
Copy link
Member

@Acconut Acconut commented Oct 25, 2023

This PR attempts to make sure that the response body is included in error messages. This can help to troubleshoot issues, such as tus/tus-android-client#98.

However, I am not entirely sure this works always as intended. For requests which include a request body, we are not able to read the response body, it seems. For example, for invalid PATCH requests, I wasn't able to obtain the error message from the response body. Maybe HttpUrlConnection does not support that.

Acconut and others added 2 commits October 25, 2023 10:26
- Since we are not using the package in TusClient.java, we can remove from the file.
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

Successfully merging this pull request may close these issues.

2 participants