Comments (11)
Hey, the No value provided for input HTTP label: Bucket.
error comes from ServerHandler
log group.
I found another issue in default-EdgeFn-c82-DefaultOriginRequestEdge-...
which might be related, not sure.
2023-06-20T09:46:32.439Z c7acfe6b-ce93-4d5c-afed-3fa8df2400ae ERROR Invoke Error
{
"errorType": "TypeError",
"errorMessage": "Cannot read properties of undefined (reading 'value')",
"stack": [
"TypeError: Cannot read properties of undefined (reading 'value')",
" at Gt (/var/task/LambdaOriginRequest.js:12:3176)",
" at Bt (/var/task/LambdaOriginRequest.js:12:2335)",
" at Runtime.no [as handler] (/var/task/LambdaOriginRequest.js:12:2282)",
" at Runtime.handleOnceNonStreaming (file:///var/runtime/index.mjs:1086:29)"
]
}
from cdk-nextjs.
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 fixHostHeader
function in inassets/lambda@edge/common.ts. Commit is here. I will try to debug later this week but wanted to provide that info in case anyone else wants to pick it up.
from cdk-nextjs.
On CloudWatch, I found this, so might be the source of the issue?
2023-06-20T09:41:06.934Z 2bfecb77-795c-4069-b692-666895ee89f8 ERROR { clientName: 'S3Client', commandName: 'ListObjectsV2Command', input: { Bucket: undefined, Prefix: 'UHWU2zPBkGlTVRE-lYYUO/index' }, error: Error: No value provided for input HTTP label: Bucket. at _V (/var/task/cache.cjs:15:9782) at ise (/var/task/cache.cjs:31:100000) at async /var/task/cache.cjs:2:382, metadata: undefined }
I also am seeing this!
...
clientName: 'S3Client',
commandName: 'ListObjectsV2Command',
input: { Bucket: undefined, Prefix: 'Yl4y8zRHm1RfTpxK3eNC4/favicon.ico' },
error: Error: No value provided for input HTTP label: Bucket.
...
I posted about this in the Discord in a discussion thread I have going, I'll report here if I hear anything.
from cdk-nextjs.
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 :).
from cdk-nextjs.
I recently tried out 4.0.0-beta.1
and didn't see this issue anymore
Thanks @bestickley!
from cdk-nextjs.
Hey @thiskevinwang, have you resolved this? It seems I'm getting the same:
503 ERROR
The request could not be satisfied.
The Lambda function associated with the CloudFront distribution is invalid or doesn't have the required permissions. 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.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
from cdk-nextjs.
On CloudWatch, I found this, so might be the source of the issue?
2023-06-20T09:41:06.934Z 2bfecb77-795c-4069-b692-666895ee89f8 ERROR {
clientName: 'S3Client',
commandName: 'ListObjectsV2Command',
input: { Bucket: undefined, Prefix: 'UHWU2zPBkGlTVRE-lYYUO/index' },
error: Error: No value provided for input HTTP label: Bucket.
at _V (/var/task/cache.cjs:15:9782)
at ise (/var/task/cache.cjs:31:100000)
at async /var/task/cache.cjs:2:382,
metadata: undefined
}
from cdk-nextjs.
@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?
from cdk-nextjs.
@thiskevinwang, I cannot reproduce this error [email protected]. 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.
from cdk-nextjs.
Hey @bestickley, the issue occurs with references to public assets. NextImage
usage is one exception where the breakage doesn't happen.
- If you replace
NextImage
with a plainimg
tag, do you see an error? - What if you view the asset url directly?
from cdk-nextjs.
@thiskevinwang, asset URLs viewed directly work too. See here.
from cdk-nextjs.
Related Issues (20)
- Refactor Props Passing By Removing `NextjsBase`
- Add Default Security Headers
- error: ValidationException: 1 validation error detected: Value null at 'tableName' failed to satisfy constraint: Member must not be null HOT 8
- Refactor custom domain logic to make actions more explicit and/or flexible HOT 9
- 403 on previous assets during deployment HOT 4
- Issue with deploying stacks with --exclusive flag
- Page with getStaticProps gets an invalid url error HOT 6
- Consider using native `node:crypto` to sign requests in sign-fn-url HOT 1
- Windows - Bundling fails due to wrong shell usage HOT 1
- CustomCDKBucketDeployment lambda - Exited with SIGKILL 9 HOT 8
- Cannot find package 'next' imported from /var/task/index.mjs" HOT 19
- bug: cdk destroy fails when open-next build is not present HOT 2
- Feature Request: Support GovCloud By Providing Option to Replace CloudFront with Api Gateway
- Upgrade to open-next v3
- Fix: Usage with PNPM on Windows
- Docs: Update README and examples/
- Skip creation of A and AAAA Records HOT 5
- When deploying the Distribution the CachePolicy creation returns 400 Bad request HOT 1
- Limit exceeded for resource of type 'AWS::CloudFront::ResponseHeadersPolicy' when deploying multiple sites
- NextjsServerOverrides.nextjsBucketDeploymentProps should be typed as optional
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cdk-nextjs.