Reduce internal server errors
Maintainers usually reply within 1 day
@Acconut is already working on this.
Since Mar 21, 2022.
Assessment
This issue has not been assessed yet.
Description
tusd currently returns some 500 Internal Server Error responses which are not necessary or should be other status codes:
-
[tusd] 2022/03/21 08:20:48 event="ResponseOutgoing" status="500" method="PATCH" path="" body="ERR_INTERNAL_SERVER_ERROR: unexpected EOF
This occurs when the request body ends unexpectedly. This is no big deal, tusd will just store the received data. This should not be a ERR_INTERNAL_SERVER_ERROR. -
[tusd] 2022/03/21 05:58:23 event="ResponseOutgoing" status="500" method="PATCH" path="" body="ERR_INTERNAL_SERVER_ERROR: http: invalid Read on closed Body
I am not sure where this is exactly coming from but maybe from the new locking mechanism with upload interruptions. This needs investigation. -
[tusd] 2022/03/21 09:07:09 event="ResponseOutgoing" status="500" method="POST" path="" body="ERR_INTERNAL_SERVER_ERROR: s3store: unable to create multipart upload: MetadataTooLarge: Your metadata headers exceed the maximum allowed metadata size
S3 has a limit on the metadata size. From https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingMetadata.html:
The PUT request header is limited to 8 KB in size. Within the PUT request header, the user-defined metadata is limited to 2 KB in size. The size of user-defined metadata is measured by taking the sum of the number of bytes in the UTF-8 encoding of each key and value.
tusd should check the metadata size before and return a 400 error if the 2 KB are exceeded.
- Dominant language
- Go
- Stars
- 3.9k
- Forks
- 557
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 10
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tus/tusd
-
Upload-Concat partial URLs are not parsed as URLs (404 with -base-path / and with query strings)Open
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
handler: data race on `ctx.body`, and an interruption before the body is set up is lostMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
C Implementation?Openenhancement
Difficulty 5/5 Over a week Newbie friendliness 8/100
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
projectcalico/calico#14766 ·
Maintainers usually reply within 1 day
-
forward/review service/container
Difficulty 1/5 Under an hour Newbie friendliness 86/100
hashicorp/terraform-provider-google#30852 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100