Issue:
I’m using the tus-java-client JAR to transfer files from one system to another via IP and port, with NGINX as a reverse proxy. While uploading, I get the following error:
io.tus.java.client.ProtocolException: unexpected status code (502) while creating upload
at io.tus.java.client.TusClient.createUpload(TusClient.java:211)
at io.tus.java.client.TusClient.resumeOrCreateUpload(TusClient.java:334)
at com.xxx.fileuploader.FilePusherTrace.uploadChunkWithResume(FilePusherTrace.java:835)
at com.xxx.fileuploader.FilePusherTrace.lambda$uploadAllChunksConcurrently$11(FilePusherTrace.java:723)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
What could be causing this 502 Bad Gateway error during upload creation? Where should I start debugging? Do i need to enable any permission in the server side system??