-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
411/412 error while using tus-java-client #124
Comments
Don't set tus-related headers on your own. tus-java-client already sets these and it's possible that your custom values are combined with the values from tus-java-client resulting in a value that is rejected by the tus server with a 412 status code. Try removing these two lines and see if it works better. In general, you should not set any Tus-* or Upload-* headers on your own. By the way, I am curious to understand why you set these headers in the first place. Was there some documentation or example that did this? If so, it should be updated. |
Thanks. made some progress to 502 error now
I put these headers because we have used these headers for tus-js-client so I assumed we needed the same headers for tus-java- |
502 is an error from the proxy. You have to configure your reverse proxy to properly play with the tus server. Without more details, it's hard to know what's causing this, but here are two resources to learn more about this: |
Question
We have a tusdotnet server and tus-js which is working perfectly fine. We are planning to add a tus-java-client as well for our product and have developed a simple java application to test the tus-java-client but, I'm consistently receiving 411 error. after looking at this article and followed the instructions and now I'm receiving 412 error. I'm not sure what headers I'm missing because I'm using the same headers from tus-js. Any help is appreciated
Thanks
Setup details
Please provide following details, if applicable to your situation:
This is my Error
The text was updated successfully, but these errors were encountered: