Giter Site home page Giter Site logo

Comments (11)

ilyagru avatar ilyagru commented on May 20, 2024 2

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.

bestickley avatar bestickley commented on May 20, 2024 1

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.

kevin-mitchell avatar kevin-mitchell commented on May 20, 2024 1

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.

kevin-mitchell avatar kevin-mitchell commented on May 20, 2024 1

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.

thiskevinwang avatar thiskevinwang commented on May 20, 2024 1

I recently tried out 4.0.0-beta.1 and didn't see this issue anymore
Thanks @bestickley!

from cdk-nextjs.

ilyagru avatar ilyagru commented on May 20, 2024

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.

ilyagru avatar ilyagru commented on May 20, 2024

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.

thiskevinwang avatar thiskevinwang commented on May 20, 2024

@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.

bestickley avatar bestickley commented on May 20, 2024

@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.

thiskevinwang avatar thiskevinwang commented on May 20, 2024

Hey @bestickley, the issue occurs with references to public assets. NextImage usage is one exception where the breakage doesn't happen.

  1. If you replace NextImage with a plain img tag, do you see an error?
  2. What if you view the asset url directly?

from cdk-nextjs.

bestickley avatar bestickley commented on May 20, 2024

@thiskevinwang, asset URLs viewed directly work too. See here.

from cdk-nextjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.