Giter VIP home page Giter VIP logo

Comments (4)

hnnasit avatar hnnasit commented on July 24, 2024 1

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.

hnnasit avatar hnnasit commented on July 24, 2024

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:24did 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.

exodus-justinz avatar exodus-justinz commented on July 24, 2024

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.

github-actions avatar github-actions commented on July 24, 2024

⚠️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)

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.