Skip to content
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

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

Open
bornox opened this issue Sep 2, 2019 · 1 comment
Open

Comments

@bornox
Copy link

bornox commented Sep 2, 2019

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.

@bornox bornox changed the title Can't upload files, every upload ends in board with 0 files Can't upload files, every upload ends in short link with 0 files Sep 3, 2019
@roberts20567
Copy link

Have the same problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants