TusPy Upload issue: TusCommunicationError: Attempt to retrieve create file url with status 412
TusPy Upload issue: TusCommunicationError: Attempt to retrieve create file url with status 412
I am using Tus-py-client
to upload file to the TusServer
. I have used the example code but getting error.
Tus-py-client
TusServer
This is what I have tried
my_client = client.TusClient(URL,headers='Authorization': Token)
my_client.set_headers('directoryId': DIR)
fs = open(file_to_upload)
uploader = my_client.uploader(file_stream=fs, chunk_size=200)
uploader.upload_chunk()
uploader.upload()
the error:
---> 10 uploader = my_client.uploader(file_stream=fs, chunk_size=200)
TusCommunicationError: Attempt to retrieve create file url with status
412
If I try with Node client it works.
0
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.