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

An error occurred (404) when calling the HeadObject operation: Not Found #1

Open
rafaelmagalhaes opened this issue Mar 1, 2018 · 1 comment

Comments

@rafaelmagalhaes
Copy link

Hi,
Great tutorial

I started to get the error An error occurred (404) when calling the HeadObject operation: Not Found
out of no where,
The code remains the same expect the bucket name access keys and secret keys,
I can upload a file but i get the error when i try to retrieve the object

screen shot 2018-03-01 at 5 13 17 pm

`AWS_ACCESS_KEY_ID = config('AWS_ACCESS_KEY_ID')
AWS_SECRET_ACCESS_KEY = config('AWS_SECRET_ACCESS_KEY')
AWS_STORAGE_BUCKET_NAME = 'igtransfer'
AWS_S3_CUSTOM_DOMAIN = '%s.s3.amazonaws.com' % AWS_STORAGE_BUCKET_NAME

AWS_S3_OBJECT_PARAMETERS = {
    'CacheControl': 'max-age=86400',
}

AWS_STATIC_LOCATION = 'static'
STATICFILES_STORAGE = 'filetransfer.storage_backends.StaticStorage'
STATIC_URL = "https://%s/%s/" % (AWS_S3_CUSTOM_DOMAIN, AWS_STATIC_LOCATION)
AWS_PUBLIC_MEDIA_LOCATION = 'media/public'
DEFAULT_FILE_STORAGE = 'filetransfer.storage_backends.PublicMediaStorage'
AWS_PRIVATE_MEDIA_LOCATION = 'media/private'
PRIVATE_FILE_STORAGE = 'filetransfer.storage_backends.PrivateMediaStorage'

LOGIN_URL = 'login'
LOGIN_REDIRECT_URL = 'profile'`

screen shot 2018-03-01 at 5 16 33 pm

@pankajsharma120
Copy link

same issue, any solution ?

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