Comments (5)
we can close this issue. Thanks @am29d for the quick check.
from powertools-lambda-typescript.
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.
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.
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.
⚠️ 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)
- Maintenance: mark `captureAWS` and `captureAWSClient` methods as deprecated in Tracer
- Maintenance: move code snippets under `examples` HOT 1
- Maintenance: start linting markdown files HOT 1
- Feature request: allow `BaseProvider` in Parameters to not have a client
- Feature request: avoid tracing API calls made during init (top-level `await`) HOT 1
- Feature request: allow parser set event type of handler with middy HOT 1
- RFC: Event Handler router HOT 2
- Bug: Parser's S3 event notifications schemas HOT 5
- Maintenance: revamp issue & PR templates HOT 4
- Maintenance: Update roadmap April HOT 4
- Maintenance: update labels in automation HOT 2
- Bug: LambdaFunctionUrlSchema fails with CloudFront Origin Access Control (OAC) HOT 4
- Feature request: Plans for alternative parser implementations HOT 5
- Bug: When under load lambda throws error HOT 2
- Maintenance: adopt Dependabot multi-directory config HOT 2
- Bug: APIGatewayProxyEventSchema incorrect schemas HOT 5
- Bug: require() command in ES module, stopping lambda from running HOT 5
- Docs: Add Powertools for AWS Lambda workshop to documentation HOT 1
- Docs: update-layer-arn should also update CDK example HOT 1
- Docs: miscellanea minor updates HOT 1
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 powertools-lambda-typescript.