question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Images not displayed with no param

See original GitHub issue

Describe the bug I updated from 2.06 to latest and deploy. Now our images are not displayed behind CloudFront with no params, eg. xoxo.cloudfront.net/image.jpg?w=200 is well displayed but not xoxo.cloudfront.net/image.jpg for which I get {}

Screenshots https://recordit.co/XaD4Qtdetv

Serverless: Deprecation warning: "service" is not accessible (configured behind variables which cannot be resolved at this stage).
            Starting with next major release, this will be communicated with a thrown error.
            Set "variablesResolutionMode: 20210326" in your service config, to adapt to this behavior now
            More Info: https://www.serverless.com/framework/docs/deprecations/#NEW_VARIABLES_RESOLVER
Serverless: Running "serverless" installed locally (in service node_modules)
Serverless: Deprecation warning: Detected unrecognized CLI options: "--settings".
            Starting with the next major, Serverless Framework will report them with a thrown error
            More Info: https://www.serverless.com/framework/docs/deprecations/#UNSUPPORTED_CLI_OPTIONS
Serverless: Deprecation warning: Resolution of lambda version hashes was improved with better algorithm, which will be used in next major release.
            Switch to it now by setting "provider.lambdaHashingVersion" to "20201221".
            While it is highly encouraged to upgrade to new algorithm, you can still use the old approach by setting "provider.lambdaHashingVersion" to "20200924".
            More Info: https://www.serverless.com/framework/docs/deprecations/#LAMBDA_HASHING_VERSION_V2
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Excluding development dependencies...
Serverless: Warning! You're using the AWS_PROXY in combination with response configuration in your function "index". Serverless will remove this configuration automatically before deployment.
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading artifacts...
Serverless: Uploading service index.zip file to S3 (335.8 kB)...
Serverless: Uploading service sharp.zip file to S3 (11.49 MB)...
Serverless: Validating template...
Serverless: Updating Stack...
Serverless: Checking Stack update progress...
.....................
Serverless: Stack update finished...
Service Information
service: serverlessTemplateImg
stage: dev
region: eu-west-3
stack: serverlessTemplateImg-dev
resources: 13
api keys:
  None
endpoints:
  GET - https://XXXXX.execute-api.eu-west-3.amazonaws.com/dev/{any+}
functions:
  index: serverlessTemplateImg-dev-index
layers:
  sharp: arn:aws:lambda:eu-west-3:XXXXX:layer:dev-sharp:16
Serverless: Removing old service artifacts from S3...

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
Mosnarcommented, May 18, 2022

Yeah, I noticed that while working on version 3 and fixed it. I didn’t realize it existed prior to that. I’ll see if I can cut a v2 release. I’m trying to focus on getting the next version out the door right now, hence why I haven’t spent much time on issues lately.

0reactions
gregBerthelotcommented, Aug 23, 2022

@Mosnar AWS are ending support for Node.js 12 in AWS Lambda. This follows Node.js 12 End-Of-Life (EOL) reached on April 30, 2022. Any chance you fix the above issue so we can upgrade to Node.js 14?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Images not loading on route with params but works on routes ...
So why isn't the image showing? I have the exact same image on another route without params that shows fine. I cant seem...
Read more >
<input type="image"> - HTML: HyperText Markup Language
<input type="image"> elements do not accept value attributes. The path to the image to be displayed is specified in the src attribute.
Read more >
Imagine Parameters Illustrated - Midjourney Documentation
Parameters options that change how the images generate. A full /imagine command might contain several things, like an image URL, image weights, ...
Read more >
HTML img tag - W3Schools
Images are not technically inserted into a web page; images are linked to web pages. The <img> tag creates a holding space for...
Read more >
Image Optimizer reference | Fastly Developer Hub
png (with no query params). IMPORTANT: A request with image optimization enabled cannot make use of cached content created by a request that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found