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 回答
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
专家
Paul_L
已回答 1 年前
  • 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
已接受的回答

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

已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则