-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v3.2.0
causes /public
assets to return 503
#111
Comments
Hey @thiskevinwang, have you resolved this? It seems I'm getting the same:
|
On CloudWatch, I found this, so might be the source of the issue?
|
@ilyagru I haven't looked into it yet (and probably don't plan on digging in myself), but I believe I saw a slightly different 503 with no mention of "lambda". What does your LogGroup name look like for that log? |
Hey @thiskevinwang, I wrote the code for 3.2 update - sorry I didn't catch the /public 503 issue. My best guess at locating the issue is when I cleaned up the "fix host header" code in assets/lambda@edge/LambdaOriginRequest.ts and put it into |
I also am seeing this!
I posted about this in the Discord in a discussion thread I have going, I'll report here if I hear anything. |
Hey, the I found another issue in
|
FYI @ilyagru I created #115 to track this specific issue. I'm going to try to see if I can figure out what is wrong, but to be honest most of the Next.js stuff I'm pretty unfamiliar with so I might not have much luck. I'll probably start an issue / discussion in Discord as well. If anybody has any understanding of what might cause this missing parameter that'd be amazing :). |
@thiskevinwang, I cannot reproduce this error cdk-nextjs-standalone@4.0.0-beta.0. See page here with image from public/ folder. I will take down the site once you confirm. You can see the example code here. I'll close this issue once you confirm. |
Hey @bestickley, the issue occurs with references to public assets.
|
@thiskevinwang, asset URLs viewed directly work too. See here. |
I recently tried out |
Problem
When deploying my Next.js app with
v3.2.0
my previously-working references of/public
folder assets (ie./image/kevin.webp
, not to be confused with Next-Image usage) began returning a generic CloudFront 503.Similarly, not-found routes returned the same CloudFront 503.
Steps I took to remediate
Downgrade from
v3.2.0
tov3.1.0
and redeploy with AWS CDK.✅
/public
images began working again.❌ Not-found routes began returning a generic S3 403, XML page.
Root cause
TBD, but should be within this diff: v3.1.0...v3.2.0
The text was updated successfully, but these errors were encountered: