-
I've noticed this warning message when calling
This is the full log message: {"timestamp":"2025-03-22T14:28:18.815+0000GMT","instant":{"epochSecond":1742653698,"nanoOfSecond":815974806},"thread":"main","level":"WARN","loggerName":"software.amazon.lambda.powertools.core.internal.UserAgentConfigurator","message":"Unable to read version.properties file. Using default version.","endOfBatch":false,"loggerFqcn":"org.apache.logging.slf4j.Log4jLogger","threadId":1,"threadPriority":5,"coldStart":"true","functionArn":"arn:aws:lambda:us-east-1:012345678912:function:SQSFunction","functionMemorySize":"512","functionName":"SQSFunction","functionVersion":"$LATEST","function_request_id":"938a96f5-d55e-45d4-99d2-3f1d6db2c005","samplingRate":"0.0","service":"service_undefined"} I was able to suppress the warning by creating an empty I tried searching the documentation but couldn't find any guides about the |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Hey @epomatti, thank you for reporting this. I tried to reproduce your behavior but I don't see any warning in my logs. The It adds a user-agent header to the SDK calls made by Powertools and the version number read by the Ideally, you should not create a Ideally, you should see |
Beta Was this translation helpful? Give feedback.
-
I created an issue for this: #1812 |
Beta Was this translation helpful? Give feedback.
-
Hey @epomatti, I created a PR to fix this: #1813 Do you mind checking out this PR in your local workspace and confirm if this resolves the issue for you? I tested it in my stack and the warning is gone. |
Beta Was this translation helpful? Give feedback.
-
Hey @epomatti, just letting you know that I released the fix for this in version Thanks again for your input! |
Beta Was this translation helpful? Give feedback.
Awesome, thanks for testing this @epomatti! I will merge the PR and it will be included with the next release.