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 Risposte
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
ESPERTO
Paul_L
con risposta un anno fa
  • 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
Risposta accettata

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

con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande