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

Unable to create a new empty transfer #6

Open
hate5six opened this issue Mar 15, 2019 · 1 comment
Open

Unable to create a new empty transfer #6

hate5six opened this issue Mar 15, 2019 · 1 comment

Comments

@hate5six
Copy link

hate5six commented Mar 15, 2019

I have a valid API key, however when I try to create an empty transfer I get the following error

>>> T = wt_client.create_transfer()

DEBUG:wetransfer-python-sdk:POST request to <https://dev.wetransfer.com/v1/trans fers> with headers:<{'Content-Length': '23', 'Accept-Encoding': 'gzip, deflate', 'Accept': '/', 'User-Agent': 'WT python SDK v0.2.0', 'Connection': 'keep-aliv e', 'x-api-key': 'EqQpdRGyba5wIqniN29K771troLgjoHn89C4AjHr', 'Content-Type': 'ap plication/json'}> and body:<{"name": "WT Transfer"}>
DEBUG:wetransfer-python-sdk: POST <401> response from <https://dev.wetransfer.co m/v1/transfers> with headers:<{'x-amzn-RequestId': 'a1e1c65e-46d4-11e9-9c0d-01b5 f9dadaff', 'Content-Length': '40', 'Via': '1.1 efdf33ba79ee3aadbfdf7e2b6e838d71. cloudfront.net (CloudFront)', 'X-Cache': 'Error from cloudfront', 'X-Content-Typ e-Options': 'nosniff', 'x-amzn-Remapped-Connection': 'keep-alive', 'Strict-Trans port-Security': 'max-age=31536000; includeSubDomains;', 'x-amz-apigw-id': 'WkHgS E_DDoEFx4w=', 'x-amzn-Remapped-Content-Length': '40', 'Connection': 'keep-alive' , 'X-Amz-Cf-Id': 'Xpw1InyHef0Bsv1aqIv1lPy9I36tut7w_EXFtbXACyJ6M-yKDdqCYQ==', 'x- amzn-Remapped-Date': 'Fri, 15 Mar 2019 03:44:27 GMT', 'Date': 'Fri, 15 Mar 2019 03:44:27 GMT', 'Content-Type': 'application/json'}> and body:<{"error":"Missing Authorization header"}>
ERROR:wetransfer-python-sdk:Failed creating new transfer

@InfiniteFor
Copy link
Contributor

A bit late, but you have to specify the transfer_name.

T = wt_client.create_transfer(transfer_name="My very first Transfer")

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