Cloudfront is throwing 504 error on a valid asset on a s3 bucket

0

I don't have a paid plan and I don't know where to ask this. The issue is, I've this clouldfront distribution that can't resolve 2 specific files, I already invalidated the files and also all the bucket but the problem remains. I don't see anything on the logs too.

Source url: https://s3.eu-west-3.amazonaws.com/m.proofing.albumteller.com/common/scripts/loading-helper/loading-helper.js Final url: https://m.proofing.albumteller.com/common/scripts/loading-helper/loading-helper.js

All other assets work fine, What can I do?

2 Answers
0

Is the bucket configured correctly as an S3 origin (using OAI or OAC) or a custom origin (where the bucket is configured as a website endpoint)? See https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistS3AndCustomOrigins.html for an explanation of these.

The error indicates CloudFront was unable to connect to the origin, so if it's configured for website hosting, confirm all your settings are correct, and in particular remember that S3 website endpoints do not support HTTPS

AWS
EXPERT
Paul_L
answered a year ago
  • Confirmed everything, I saw one difference and I changed and invalidated the cloudfront again, but the error remains. The weird thing is that used to work for months.. I'll try to change the path or rename the file to see if behavior continues

-1
Accepted Answer

Just got the problem! it was the cloudfront origin I was setting https instead of http.

answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions