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

Closed as duplicate
@VijayasreeS

Description

@VijayasreeS

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

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.duplicateThis issue is a duplicate.module/lambda-client-libp2This is a standard priority issueservice-apiThis issue is due to a problem in a service API, not the SDK implementation.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions