Amazon aws submit error on local instance || error : POST net::ERR_CONNECTION_RESET
Hello, I am running a local setup on my system. I have setup all the docker images properly. And all are running good. While creating competition( I took iris.zip as sample ), the submission fails, giving as
My aws in env is : DEFAULT_FILE_STORAGE=storages.backends.s3boto3.S3Boto3Storage AWS_ACCESS_KEY_ID=####### AWS_SECRET_ACCESS_KEY=######## AWS_STORAGE_BUCKET_NAME=nandcode-public AWS_STORAGE_PRIVATE_BUCKET_NAME=nandcode-private AWS_S3_CALLING_FORMAT=boto.s3.connection.OrdinaryCallingFormat AWS_S3_HOST=s3.amazonaws.com AWS_QUERYSTRING_AUTH=False S3DIRECT_REGION=us-west-1 ^^Set the S3DIRECT_REGION to the AWS region of your storage buckets AWS_S3_REGION_NAME=us-west-1 AWS_S3_SIGNATURE_VERSION=s3v4
Virtual Host style addressing, 2020+ AWS_S3_ADDRESSING_STYLE=virtual S3DIRECT_URL_STRUCTURE=http://{1}.{0}
I am using http without SSL, and when i click submit there is no change in the docker/django log file . So it could be a connection error.
I have set up all the USER( in aws IAM ) and bucket policies and CORS perfectly. I tried all the ways , but not able to solve the error . Please help me out to solve the error. Its me bugging me so much. For any more information let me know
Dear @nandanitis ,
Have you checked AWS S3 docs if they support HTTP request ? Maybe they accept only HTTPS.
Regards,
Amazon accepts both http and https. Issuse is from the code side