aws-samples / react-ssr-lambda

Demo of server side rendering for React application on AWS Lambda
MIT No Attribution
107 stars 24 forks source link

home path and edgessr both got ERROR: The request could not be satisfied #28

Closed dsl2022 closed 1 year ago

dsl2022 commented 2 years ago

when accessing the following 2 https://.......cloudfront.net https://.......cloudfront.net/edgessr I got the error below. got any idea where is the issue located possibly?

The other paths all work as expected.

<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The request could not be satisfied</TITLE>
</HEAD><BODY>
<H1>502 ERROR</H1>
<H2>The request could not be satisfied.</H2>
<HR noshade size="1px">
The Lambda function returned invalid JSON: The JSON output must be an object type.
We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
<BR clear="all">
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
<BR clear="all">
<HR noshade size="1px">
<PRE>
roman-boiko commented 2 years ago

What errors do you have in your Lambda functions logs?