astrikos / wetransfer-python-sdk

:snake: A Python SDK for WeTransfer's Public API
GNU General Public License v3.0
3 stars 1 forks source link

Can't upload files, every upload ends in short link with 0 files #8

Open bornox opened 5 years ago

bornox commented 5 years ago

I'm using this code and trying to upload file, but this resulting in WeTrasfer link to empty board - "This board is empty" - no files.

kwargs = {"key":  "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"}
wt_client = WTApiClient(**kwargs)

wt_client.authorize()

transfer = wt_client.create_transfer(transfer_name="New upload")
f1 = File("setup-lightshot.exe")
transfer.add_items([f1])

I'm getting this error messages only in debug mode:

ERROR:wetransfer-python-sdk:Failed closing upload for item id: XXXXXXXXXXXXXX
Transfer with id: XXXXXXXXXXXXXXXXXXXXXX, can be found in short url: https://we.tl/XXXXXXXXXXX, with following items: ['Transfer item, file type, with size 2784344, name setup-lightshot.exe, and local path C:\\Users\\XXXXXXXXXXXXXX\\Desktop\\setup-lightshot.exe, has 1 multi parts']
ERROR:wetransfer-python-sdk:Failed to upload item Transfer item, file type, with size 2784344, name setup-lightshot.exe, and local path C:\Users\XXXXXXXXXX\Desktop\setup-lightshot.exe, has 1 multi parts

In normal mode I got only this part:

Transfer with id: XXXXXXXXXXXXXXXXXXXXXX, can be found in short url: https://we.tl/XXXXXXXXXXX, with following items: ['Transfer item, file type, with size 2784344, name setup-lightshot.exe, and local path C:\\Users\\XXXXXXXXXXXXXX\\Desktop\\setup-lightshot.exe, has 1 multi parts']

But link has no files in it.

roberts20567 commented 5 years ago

Have the same problem here.