Skip to content

How to clear the chunk cache or solve this problem? #94

@cryinrain69

Description

@cryinrain69

If I select a new file to upload, everything works fine.
But then I select that file again (I've uploaded it before) and it fails to upload, crashes when calling uploader.finish()
Logs:

io.tus.java.client.ProtocolException: unexpected status code (400 or 500) while uploading chunk
17:55:09.578 System.err en....atech.vovnews W at io.tus.java.client.TusUploader.finishConnection(TusUploader.java:343)
17:55:09.579 System.err en....atech.vovnews W at io.tus.java.client.TusUploader.finish(TusUploader.java:321)
17:55:09.579 System.err en....atech.vovnews W at io.tus.java.client.TusUploader.finish(TusUploader.java:306)

I checked and found uploader.uploadChunk() = -1, before do do { ...} while(uploader.uploadChunk() > -1)

I thought clearing chunk cache might be a solution but I couldn't find that method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions