SnapStart: Using AddAWSLambdaBeforeSnapshotRequest() and AddHttpContextAccessor() in-conjunction causes initialization failure #2069
Labels
bug
This issue is a bug.
module/lambda-client-lib
p2
This is a standard priority issue
pr/needs-review
This PR needs a review from a Member.
Describe the bug
As described above. See: https://github.com/budgetdevv/AWSSnapStartBugRepro/blob/5833e924110e59d3cc574461ecf2023802a0d1dd/SnapStartBugTest/src/SnapStartBugTest/Program.cs#L14C10-L14C32
Regression Issue
Expected Behavior
It should be able to initialize.
Current Behavior
It fails to initialize with an exception.
Reproduction Steps
Possible Solution
Currently I am using a custom HttpContextAccessor to circumvent this
Additional Information/Context
Do look into the stacktrace here: https://gist.github.com/budgetdevv/b1304220f2cf3921723109a53f9a82a0#file-gistfile1-txt-L32
AWS .NET SDK and/or Package version used
Targeted .NET Platform
.NET 8
Operating System and version
OSX Sonoma
The text was updated successfully, but these errors were encountered: