Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
trying something elese
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjbowers committed Sep 21, 2017
1 parent 21c99ee commit bbc39e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions twilio_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

s3 = boto3.resource(
's3',
endpoint_url=os.environ.get('AWS_S3_ENDPOINT', 'https://int.nyt.com/'),
endpoint_url=os.environ.get('AWS_S3_ENDPOINT', 'https://'),
aws_access_key_id=os.environ.get('AWS_GCS_ACCESS_KEY_ID', None),
aws_secret_access_key=os.environ.get('AWS_GCS_SECRET_ACCESS_KEY', None),
)
Expand Down Expand Up @@ -164,7 +164,9 @@ def recongize():
logging.info("Sending image up to S3")
key_str = 'applications/faces/' + str(uuid.uuid4()) + '.png'
target_image.get_image_file().seek(0)
s3.Bucket('int.nyt.com').put_object(Key=key_str, Body=target_image.get_image_file(), ContentType='image/png')

# IT IS FAILING RIGHT HERE APPARENTLY
# s3.Bucket('int.nyt.com').put_object(Key=key_str, Body=target_image.get_image_file(), ContentType='image/png')

url = "https://int.nyt.com/" + key_str
logging.info("Image uploaded to: " + url)
Expand Down

0 comments on commit bbc39e2

Please sign in to comment.