tus / tus-resumable-upload-protocol

Open Protocol for Resumable File Uploads
https://tus.io
MIT License
1.49k stars 102 forks source link

Lack of Detail on Error Handling #150

Closed aubreyrees closed 4 years ago

aubreyrees commented 4 years ago

There seems to be lack of detail on how to handle errors in the Tus spec.

Specifically:

These questions came up while I was setting up a simple server to handle TUS requests without considering a particular client library. While a sane response can be guessed at there is no guarantee that a particular client will be in agreement with these guesses, or if there will be consensus amongst clients as to how to handle errors responses.

While these are relatively minor issues I believe it would help reduce friction between server and client implementations if these where addressed by the spec.

I suspect a lot of these cases are covered in tusd and for my implementation I will start reading through its code base, but it would still be best if the correct behaviour was canonicalised in the spec.

aubreyrees commented 4 years ago

I managed to miss #104 which seems to already cover a lot of these issues. I’ll raise and discuss any outstanding issues there. Closing this.