Coder Social home page Coder Social logo

Comments (5)

karthikeyanjp avatar karthikeyanjp commented on June 3, 2024 1

we can close this issue. Thanks @am29d for the quick check.

from powertools-lambda-typescript.

am29d avatar am29d commented on June 3, 2024

Hey @karthikeyanjp ,

this is indeed a bug that should not happen if you pass your custom client that is not AWS SDK. I will fix the issue quickly to unblock you.

from powertools-lambda-typescript.

am29d avatar am29d commented on June 3, 2024

Hey @karthikeyanjp ,

I had a hard time to reproduce the error in our tests and now I see the problem. The error you see and the stackTrace is a console.warn message in addUserAgentMiddleware, your code executes successfully. We throw an error if we can't add user agent but also catch it for a warning log. We don't want to block execution if there are any issues with the user agent, thus we just print it.

While we could potentially remove our throw Error, it's still helpful to have a log inside the catch to understand what went wrong.

With this in mind, you should be able to implement your custom provider for parameters. If there are any open questions let me know, otherwise I will close the issue.

from powertools-lambda-typescript.

karthikeyanjp avatar karthikeyanjp commented on June 3, 2024

Thanks @am29d. You are right, it's only a warning. But figured the log statements could be misleading as addUserAgentMiddleware is only a AWS SDK functionality and our log analyzer picked this as an Error because of the description. Alternate is to retain the throw error and to call addUserAgentMiddleware only for AWS SDK clients.

from powertools-lambda-typescript.

github-actions avatar github-actions commented on June 3, 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 powertools-lambda-typescript.

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.