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
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.
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
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
The text was updated successfully, but these errors were encountered: