-
Notifications
You must be signed in to change notification settings - Fork 364
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
NoneType during payload extraction from add_athena_partitions #274
Comments
Hi @hoilchoi , Thanks for raising this issue. We will take a look at this issue but are glad that the workaround you tried got you unblocked. The main purpose of this sanitized payload seems to be so that we don't log any sensitive/critical information. We will take a look at this. |
@bios6 is there any update on this? |
Hi, According to the boto3 documentation, lambda_client.invoke should ideally always return a payload : https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda/client/invoke.html . Prior to v4.0.5 we were just always logging the full response and wanted to sanitize it for v4.0.5. Based on what we saw from @hoilchoi , it does look like the payload can be empty and we plan to fix this bug in the next minor release. The parsed payload isn’t used for anything, it’s just being logged. If payload ... else works fine because we don’t need to log anything if we don’t receive a payload. Thanks! |
Hi @bios6 Thanks for the info, do we have an ETA for when the next minor release? thanks in advance |
Hi @hoilchoi and @mosestam97 , We just released v4.0.6 that should fix and address this issue. Closing this issue now. Thank you! |
Describe the bug
This block caused deployment failure for me, due to NoneType value in payload:
Failure is during CloudFormation's eventual consistency check.
Error from CFN:
added a quick log message to check that Payload from Response:
I also confirmed that the StreamingBody Payload was in fact, null by logging payload after json load:
I could not find what the parsed payload used for, so I just tried deploy with this quick change:
and was able to deploy just fine.
But I'm still not sure if payload was supposed to be used for something, so didn't want to leave at that.
Is payload expected from Lambda response, and critical that we extract it?
To Reproduce
For me, I just deployed with these params modified:
ActivateScannersProbesProtectionParam: yes - Amazon Athena log parser
ActivateAWSManagedRulesParam: yes
ActivateAWSManagedSQLParam: yes
RequestThreshold: 1000
HTTPFloodAthenaQueryGroupByParam: Country
Expected behavior
Deploy successfully without code change
Please complete the following information about the solution:
The text was updated successfully, but these errors were encountered: