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.

3.0.0-rc.9 AWS Lambda SSR is broken with No match found for location with path "/images/icons/gear.png"

See original GitHub issue

Environment

Nuxt project info: 13:45:19


  • Operating System: Darwin
  • Node Version: v16.15.1
  • Nuxt Version: 3.0.0-rc.9
  • Nitro Version: 0.5.0
  • Package Manager: npm@8.11.0
  • Builder: vite
  • User Config: nitro, app, server, modules, css, build
  • Runtime Modules: @nuxtjs/tailwindcss@5.3.2
  • Build Modules: -

Reproduction

image

Describe the bug

My application is hosted as SSR with aws-lambda and worked fine with the rc-8 version. I upgraded today to rc-9 and it works locally when I test it. After deployment, the page is not loading and is throwing “Internal Server Error” When I check the AWS Lambda logs, it returns this error, "No match found for location with path “/images/icons/gear.png” and is causing the API gateway to return 502 error. API gateway return 502 error when lambda return a response which is different from what API gateway format .

I don’t have any images folder or gear.png file on my project and I’m guessing it is part of the Nuxt project.

Additional context

Same code works after deployment with rc-8 version.

Logs

2022-09-03T13:48:48.970-04:00	START RequestId: a8e6de3b-ebc4-497a-a71e-221747a1a283 Version: $LATEST

2022-09-03T13:48:48.989-04:00	2022-09-03T17:48:48.973Z a8e6de3b-ebc4-497a-a71e-221747a1a283 WARN [Vue Router warn]: No match found for location with path "/images/icons/gear.png"

2022-09-03T13:48:48.990-04:00	2022-09-03T17:48:48.990Z a8e6de3b-ebc4-497a-a71e-221747a1a283 WARN [Vue Router warn]: No match found for location with path "/images/icons/gear.png"

2022-09-03T13:48:49.009-04:00	2022-09-03T17:48:48.990Z a8e6de3b-ebc4-497a-a71e-221747a1a283 WARN [Vue Router warn]: No match found for location with path "/images/icons/gear.png"

2022-09-03T13:48:49.010-04:00	2022-09-03T17:48:49.009Z a8e6de3b-ebc4-497a-a71e-221747a1a283 WARN [Vue Router warn]: No match found for location with path "/images/icons/gear.png"

2022-09-03T13:48:49.269-04:00	2022-09-03T17:48:49.231Z a8e6de3b-ebc4-497a-a71e-221747a1a283 WARN [Vue Router warn]: No match found for location with path "/images/icons/gear.png"

2022-09-03T13:48:49.270-04:00	2022-09-03T17:48:49.270Z a8e6de3b-ebc4-497a-a71e-221747a1a283 WARN [Vue Router warn]: No match found for location with path "/images/icons/gear.png"

2022-09-03T13:48:49.289-04:00	2022-09-03T17:48:49.270Z a8e6de3b-ebc4-497a-a71e-221747a1a283 WARN [Vue Router warn]: No match found for location with path "/images/icons/gear.png"

2022-09-03T13:48:49.290-04:00	2022-09-03T17:48:49.290Z a8e6de3b-ebc4-497a-a71e-221747a1a283 WARN [Vue Router warn]: No match found for location with path "/images/icons/gear.png"

2022-09-03T13:48:49.671-04:00	END RequestId: a8e6de3b-ebc4-497a-a71e-221747a1a283

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
anjali89rcommented, Sep 14, 2022

Closing this as the issue is fixed in rc-10

0reactions
anjali89rcommented, Sep 3, 2022

When I downgraded to rc-8 it worked without any issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot deployment issues in Lambda
This issue can occur when you specify an Amazon S3 object in a call to UpdateFunctionCode, or use the package and deploy commands...
Read more >
Troubleshoot Lambda function failures - Amazon AWS
When I try to invoke my AWS Lambda function, it fails and returns an ... is not authorized to perform: lambda:InvokeFunction on resource: ......
Read more >
Assets - AWS Cloud Development Kit (AWS CDK) v2
Assets are local files, directories, or Docker images that can be bundled into AWS CDK libraries and apps. For example, an asset might...
Read more >
Set up Lambda proxy integrations in API Gateway
Amazon API Gateway Lambda proxy integration is a simple, powerful, and nimble mechanism to build an API with a setup of a single...
Read more >
Lambda@Edge - Amazon AWS
Lambda @Edge is a feature of Amazon CloudFront that lets you run code globally, ... time you consume - there is no charge...
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