400 Bad Request from Cloudfront
-
Hi Experts, we widly use your plugin to publish our media files in the website. Our files are stored in an external CDN that use AWS Cloudfront. Sometimes we got 400 Bad Request error from verification step. You can see an example here: https://radiomaria.org/400_err.jpg
From the logs we can see that the server sends HTTP HEAD requests and so HTTP GET requests to validate the url:
[25/Sep/2024:16:17:28 +0200] client: x.x.x.x – – “HEAD /…. HTTP/1.1” 200 – “-” “Blubrry PowerPress/11.9.17”
[25/Sep/2024:16:17:28 +0200] client: x.x.x.x – – “GET /…. HTTP/1.1” 206 10 “-” “Blubrry PowerPress/11.9.17”
[25/Sep/2024:16:17:28 +0200] client: x.x.x.x – – “HEAD /…. HTTP/1.1” 200 – “-” “Blubrry PowerPress/11.9.17”
[25/Sep/2024:16:17:28 +0200] client: x.x.x.x – – “GET …. HTTP/1.1” 206 107705 “-” “Blubrry PowerPress/11.9.17”
Seems that Cloudfront, sometimes, doesn’t allow HTTP HEAD request:HTTP/1.1 400 Bad Request
Content-Type: audio/mp4
Content-Length: 430
Connection: keep-alive
Server: Varnish
Retry-After: 0
Accept-Ranges: bytes
Via: 1.1 varnish, 1.1 varnish, 1.1 892b64cb4f7d422e3a1221397ea1a546.cloudfront.net (CloudFront)
Access-Control-Allow-Headers: accept-encoding, cache-control, origin, dnt
Date: Thu, 26 Sep 2024 12:35:45 GMT
Access-Control-Allow-Origin: *
X-Served-By: cache-iad-kiad7000098-IAD, cache-lin1730021-LIN
X-Cache-Hits: 0, 0
X-Timer: S1727354146.578074,VS0,VE97
X-Cache: Error from cloudfront
X-Amz-Cf-Pop: MXP63-P2
X-Amz-Cf-Id: 1WViFbyYF9Pi-1joKQc5bb15etisgVE7L6QZCnj4bqpLJiuObQddog==Is there an option of Blubrry PowerPress to send only HTTP GET request?
We have opened a ticket to Cloudfront but the first reply is ”400
errors are caused by the request’s content being flawed in some way, a request would not contain any “out of bounds” values”.
Thanks in advance for your cooperation.
- You must be logged in to reply to this topic.