Cloudfront generated error for POST when everything from the server is fine

0

Using Cloudfront which is directed at an EC2 server, for all GET requests, everything is fine.
However POST requests, Cloudfront fails, but the correct result is coming from the server.

Header is as follows (x is blanking for privacy), notice the "Error from cloudfront" :-

General header:
Request Method: POST
Status Code: 500
Remote Address: xx.xx.xx.xx:443
Referrer Policy: strict-origin-when-cross-origin

Response header:
cache-control: no-cache, must-revalidate
content-length: 173
content-type: application/json; charset=utf-8
date: Tue, 09 Mar 2021 15:28:47 GMT
expires: Sat, 26 Jul 1997 00:00:00 GMT
server: Apache/2.4.46 () OpenSSL/1.0.2k-fips
strict-transport-security: max-age=31536000; includeSubDomains;
via: 1.1 xxxxx1ed0adxxxxxx2cc8xxxxa281f46.cloudfront.net (CloudFront)
x-amz-cf-id: ATAa-Pd296qp0ASH022eIY0Dx0x5hGBVplqWfRpCfzkrJ1rDVFEjew==
x-amz-cf-pop: DUB2-C1
x-cache: Error from cloudfront
x-content-type-options: nosniff

Why is cloudfront generating a 500 error when the origin hasn't and the origin has returned the data as it should?

已提問 3 年前檢視次數 720 次
1 個回答
0

Problem was PHP8. It is far more strict on closing an already closed database connection and generates a 500 error

已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南