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)
- Bug: [WinError 3] The system cannot find the path specified HOT 4
- Feature request: Deploy Lambdas with concurrency HOT 3
- Bug: sam sync with python causes endless cpu saturation HOT 11
- Bug: sam build - EmptyKeyError HOT 1
- Bug: Unable to run sam local invoke on Apple Silicon HOT 14
- Cannot sam local start-api without specifying an image HOT 1
- Bug: sam local start-api - ReadTimeout HOT 3
- Bug: "Timed out while attempting to establish a connection to the container" error after fresh install of Docker and AWS SAM HOT 7
- Bug: sam build - JSONDecodeError HOT 3
- Bug: No new Lambda Versions are deployed with Lambda configurations changes HOT 2
- Bug: Change Parameter's Default value doesn't reflect HOT 6
- Bug: AWS ADOT LAMBDA layer stuck when using local invoke HOT 5
- Bug: AWS::Serverless::Function `ImageUri` with map (ex: using `!Sub`) fails with type error HOT 7
- Access to internal enterprise host (Github entreprise) HOT 1
- Bug: sam deploy - ConnectionError HOT 2
- Bug: SAM Doesn't recognize changes related to intrinsic functions (#6610) HOT 1
- Bug: Error: The runtime 'provided.al2023' is unsupported. (golang) HOT 6
- `BuildMethod: esbuild` does not include bundled files HOT 2
- Bug: AWS::Events::Rule EventBusName -> 'name' member must satisfy regular expression pattern [\.\-_A-Za-z0-9]+ HOT 4
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.