Comments (4)
Hi @exodus-justinz, thanks for reporting the issue. I am able to reproduce the error. The error seems to be coming from lambda RIE which emulates the lambda invocation. Let me check with the lambda RIE team about this and get back.
from aws-sam-cli.
I checked with the RIE team and it seems like the issue is possibly coming from registration of the extension in the layer itself. The extension in theory is able to tell if it's running inside a lambda or an extension but it's possible the layer is registering the extension multiple times causing the AgentNameCollision
error. I also noticed the previous version of the layer arn:aws:lambda:us-east-1:378653112637:layer:Synthetics:24
did not give this issue and started from the version 25
. I tried deploying the project using sam sync
and invoking the lambda using sam remote invoke
and it was working fine. You could try testing it on the cloud as well. Not sure if we can do anything on SAM CLI side as the issue is originating from the layer during emulation.
from aws-sam-cli.
thanks for looking into this. I tried updating the layer and it was able to run successfully. closing this issue 🙏
> sam local invoke
Invoking index.handler (nodejs16.x)
arn:aws:lambda:us-east-1:378653112637:layer:Synthetics:24 is already cached. Skipping download
Local image is up-to-date
Using local image: samcli/lambda-nodejs:16-x86_64-f9fd7a7a463f7b9752563cbd6.
Mounting /Users/<USER>/github/node-test/.aws-sam/build/Function as /var/task:ro,delegated, inside runtime container
START RequestId: 9ae3952c-6420-448a-9ecd-f2dfdb19364d Version: $LATEST
2024-06-10T02:29:56.509Z a43dbaba-f562-4165-9a7b-7ab1b046e884 INFO Success
END RequestId: a43dbaba-f562-4165-9a7b-7ab1b046e884
REPORT RequestId: a43dbaba-f562-4165-9a7b-7ab1b046e884 Init Duration: 0.50 ms Duration: 939.05 ms Billed Duration: 940 ms Memory Size: 128 MB Max Memory Used: 128 MB
null
from aws-sam-cli.
⚠️ COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
from aws-sam-cli.
Related Issues (20)
- Api Gateway requests with query string always response 400 HOT 3
- Bug: python 3.12 with setuptools installed and distutils still being required. HOT 5
- VStudio Debug for Typescript Lambda function gives Runtime.ImportModuleError HOT 7
- Feature request: Support for Python requirements files with different names HOT 3
- Bug: "sam build - TypeError" When building Docker Image from documentation HOT 1
- SamCli standard template with no modifications fails validation HOT 6
- Feature request: switch to add SO_REUSEPORT to main socket in local start-lambda / start-api HOT 1
- JSON decode error HOT 4
- Lambda response must be valid json HOT 3
- Feature request: Support publishing SAM template to SAR that leverages an existing macro HOT 2
- Getting `ValueError: Function name is required` when running API Gateway from Terraform HOT 4
- Bug: sam local start-api - ResponseParserError HOT 2
- `'str' object has no attribute 'decode'` when `PortAlreadyInUse` error is raised. HOT 2
- Feature request: Enhance generate-event to support chained events in common patterns. HOT 3
- Version 1.120.0 Affected by CVE-2024-5535 HOT 1
- Bug: sam deploy - KeyError HOT 2
- Feature request: Upgrade cfn-lint dependency HOT 2
- Add Rust support to aws cli --use-container builds HOT 1
- Cannot find module 'app' when using "hello world typescript" example HOT 1
- Bug: AWS::Serverless::Function ImageUri with function (ex: using !If) fails with type error
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 aws-sam-cli.