Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

126
Views
No se puede cargar la imagen a amazon s3 desde boto

Necesito cargar imágenes en el depósito de Amazon S3, tengo AWS_KEY,AWS_SECRET y el nombre del depósito. Encuentre el código a continuación para cargar las imágenes en aws s3. Cuando intento cargarlas, aparece el siguiente error...

 AWS_KEY = "xxxxxx" AWS_SECRET = "xxxxxx" from boto.s3.connection import S3Connection from boto.s3.key import Key filenames = ['D:/Share/1_test.png'] conn = S3Connection(aws_access_key_id=AWS_KEY, aws_secret_access_key=AWS_SECRET) for fname in filenames: print fname bucket = conn.get_bucket("xxxxxxx",validate = False) print bucket #key = bucket.new_key(fname).set_contents_from_string('test img') key = Key(bucket) key.key = fname key.set_contents_from_filename(fname) print "uploaded file %s" % fname

boto.exception.S3ResponseError: S3ResponseError: 400 Bad Request InvalidRequest El mecanismo de autorización que ha proporcionado no es compatible. Utilice AWS4-HMAC-SHA256.0E67564A45D10F51UCh6NhAz2x75gW17D4pMNxPepLn7q3ISXZzzucA+bd/oDRC+rSv8nlnGB/ejgUsGaofDu1rLy9g=

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!