tus / tus-java-client

The tus client for Java.
https://tus.io
MIT License
213 stars 88 forks source link

How can I log more detailed information? #80

Closed lealceldeiro closed 1 year ago

lealceldeiro commented 1 year ago

Question I'm facing this issue as well https://github.com/tus/tus-java-client/issues/66 and I'd like to be able to see detailed information about the ProtocolException being thrown.

Ideally, I'd like to be able to see the underlying cause of the error 400, what was the actual response from the Cloudflare servers, etc., instead of this simple message (currently shown): io.tus.java.client.ProtocolException: unexpected status code (400) while creating upload

Of course, if you know of a solution for the linked issue, that'd be awesome!

Also, I've contacted already Cloudflare support -- waiting for a reply.

Setup details Please provide following details, if applicable to your situation:

lealceldeiro commented 1 year ago

I have created a minimal reproducible example here: https://github.com/lealceldeiro/cloudflareuploader#cloudflare-uploader

Acconut commented 1 year ago

Where you able to fix your problem? There is no option to enable more logging in tus-java-client, unfortunately.

lealceldeiro commented 1 year ago

Where you able to fix your problem? There is no option to enable more logging in tus-java-client, unfortunately.

Thanks for following up @Acconut I ended up debugging inside TusClient to find out what the problem with the upload was.