Skip to content

AWS documentation says the Handler property has a max length 128 characters, but values exactly 128 characters long appear to be truncated to 127 characters in the dotnet6 Lambda runtime, and therefore fail. #2023

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task
VijayasreeS opened this issue Mar 27, 2025 · 2 comments
Assignees
Labels
bug This issue is a bug. duplicate This issue is a duplicate. module/lambda-client-lib p2 This is a standard priority issue service-api This issue is due to a problem in a service API, not the SDK implementation.

Comments

@VijayasreeS
Copy link

Describe the bug

AWS documentation says the Handler property has a max length 128 characters, but values exactly 128 characters long appear to be truncated to 127 characters in the dotnet6 Lambda runtime, and therefore fail.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

if the functionname is exact 128 then the lambda should work fine as the limit is 128.
A handler value exactly 128 characters long shouldn't be truncated and should invoke the handler method successfully.

Current Behavior

A handler value exactly 128 characters long
it truncates to 127 and produces error on func invocation: r is truncated in FunctionHandler

"errorType": "LambdaValidationException",
"errorMessage": "Unable to find method 'FunctionHandle' in type 'SSSSSSSSSSS.Services.SisSchAbsenceCreateScheduler.Handler' from assembly 'SSSSSSSSSSS.Services.LambdaSisAbsenceCreateScheduler': Found no methods matching method name 'FunctionHandle'.",

Reproduction Steps

Reproduction Steps
Create a Lambda with a handler specification that is exactly 128 characters long.
Try to invoke the function.

Possible Solution

No response

Additional Information/Context

No response

AWS .NET SDK and/or Package version used

.Net 6

Targeted .NET Platform

.Net

Operating System and version

Windows 10 Enterprise

@VijayasreeS VijayasreeS added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Mar 27, 2025
@ashishdhingra
Copy link
Contributor

@VijayasreeS Good morning. This is a duplicate of #1642. The issue is with the Lambda runtime and we had opened an internal ticket (P109288213) with Lambda team. Please follow thread in that ticket to follow up on the backlog item they created at their end. This is not actionable from .NET SDK team.

Thanks,
Ashish

@ashishdhingra ashishdhingra added duplicate This issue is a duplicate. service-api This issue is due to a problem in a service API, not the SDK implementation. p2 This is a standard priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Mar 27, 2025
@ashishdhingra ashishdhingra self-assigned this Mar 27, 2025
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. duplicate This issue is a duplicate. module/lambda-client-lib p2 This is a standard priority issue service-api This issue is due to a problem in a service API, not the SDK implementation.
Projects
None yet
Development

No branches or pull requests

2 participants