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

refactor(core): Return unexpected error while content incomplete happen #4633

Merged
merged 1 commit into from
May 21, 2024

Conversation

Xuanwo
Copy link
Member

@Xuanwo Xuanwo commented May 21, 2024

We used to return two different errors, ContentIncomplete and ContentTruncated, when the HTTP response had too much or too little data. However, these error codes were not helpful to users as they provided no actionable steps.

This PR addresses this issue by returning a generic unexpected error instead.

@Xuanwo Xuanwo merged commit 3393895 into main May 21, 2024
246 of 247 checks passed
@Xuanwo Xuanwo deleted the remove-content-related-errors branch May 21, 2024 09:01
George-Miao pushed a commit to George-Miao/opendal that referenced this pull request Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants