Closed jaejungkim closed 1 week ago
the server throws a 500 server error and there is no error message in the client? Is this the expected behavior?
Yes, this is expected. Your hooks are exiting with a non-zero exit code, which is understood as a failure in its execution. If you want to show an error message to the client, you have to exit with the exit code 0, but write a properly formatted hook response to stdout. Please read through https://tus.github.io/tusd/advanced-topics/hooks/#file-hooks (the specific for the file hooks but also the entire hook process in general) to learn more.
Question
However, when uploading a tusd file from the uppy react dashboard, it is blocked on the client in pre-create, but I know that pre-finish is a blocking code, but the server throws a 500 server error and there is no error message in the client? Is this the expected behavior? How do I get an error in the uppy dashboard when sys.exit(1) is used in pre-finish, as in pre-create? Is it possible?
Setup details Please provide following details, if applicable to your situation:
tusd -version
] 2.4.0 latest versiontusd
?]