Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

AlbTargetGroupRequest misses default value for headers #36

Closed
miere opened this issue May 10, 2021 · 0 comments · Fixed by #39
Closed

AlbTargetGroupRequest misses default value for headers #36

miere opened this issue May 10, 2021 · 0 comments · Fixed by #39

Comments

@miere
Copy link

miere commented May 10, 2021

Hi there!

I recently updated my ALB configuration, enabling the multi-header feature. This move introduced a breaking change, preventing me to handle ALB Requests. The root cause, if my diagnose is correct, lies in the fact that, with multi-header enabled in ALB, the header entry is empty and might've been removed during the serialization process. As a result, serde tries to deserialize the received bytes into an AlbTargetGroupRequest instance but fails as header is mandatory and has no default implementation available.

Here you can find the raw JSON that was received by the Lambda Runtime.

I know that the AlbTargetGroupRequest is generated based on the Go SDK, but for the sake of the test, I've manually patched it and it worked as expected.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant