The solution was in the code I posted originally. I had commas at the
declaration of the public and private key. After removing the commas I can
now upload.
*Before:*
bucket = "pobook",
region = 'ca-central-1',
aws_akey = "##",
aws_skey = ""
*After:*
bucket =
Again, your new error is pretty explicit boto was expecting a string in
your access_key and found a tuple there. You probably used a tuple with
your key and secret in aws_access_key instead of just the key. The secret
should go in aws_secret_key.
--
Resources:
- http://web2py.com
- http://web2
I have upgraded to the master branch on github, and here is the new error:
Ticket ID
184.67.247.98.2018-06-08.17-44-04.323a9bf9-4ee3-4150-9c1c-bacc7b84e0df
coercing to Unicode: need string or buffer,
tuple foundVersion
web2py™ Version 2.16.1-stable+timestamp.2018.05.24.15.00.45Traceback
1.
2.
Well the error is pretty explicit. Convert path to unicode.
Instead of:
path='attachments.files.ad112b05475e6e3e.4c61632045766...e7669746174696f6e2028456e676c697368292e706466.pdf'
Use:
path=u'attachments.files.ad112b05475e6e3e.4c61632045766...e7669746174696f6e2028456e676c697368292e706466.pdf'
4 matches
Mail list logo