programming-stayler / tus_file_uploader

MIT License
3 stars 3 forks source link

Server exception not returning entire message #2

Open KirioXX opened 3 days ago

KirioXX commented 3 days ago

Hi, Thanks for this great library! I try to implement tus in my flutter app with a tus server running in a nestjs application. Now I ran into a problem with debugging the upload, the server seams to throw an error but the log I see looks like this:

flutter: └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
flutter: \^[[38;5;196m┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>
flutter: \^[[38;5;196m│ ⛔ ProtocolException: unexpected status code (500) while uploading chunk<…>
flutter: \^[[38;5;196m└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────<…>

It is missing the actual message to find out what went wrong.

Is there a way that I could make this log more readable? Thank you!

KirioXX commented 3 days ago

I'm not sure if that helps but my server has a nested file path rewrite like here in the documentation: https://github.com/tus/tus-node-server/tree/main/packages/server#example-store-files-in-custom-nested-directories