-
Notifications
You must be signed in to change notification settings - Fork 411
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
Bug: ValidationError for EventBridgeModel #6112
Comments
Thanks for opening your first issue here! We'll come back to you as soon as we can. |
Hey @tthirietdev! Thanks for opening this issue and reporting this behavior. @anafalcao can you please take a look on this? |
|
Thanks a lot for your swift handling of this issue. :) |
This is now released under 3.7.0 version! |
Expected Behaviour
When running a lambda from an EventBridge scheduler, EventBridgeModel should be able to parse the event.
Current Behaviour
EventBridgeModel fails to parse EventBridge scheduler event because of the field detail.
For some reason, the event returned by AWS has
detail
property as a string and not as a dict. I am wondering if it's because it is empty.Exemple of the event received
And the returned error
Code snippet
Possible Solution
detail
property that json.loads() the valueSteps to Reproduce
EventBridgeModel
lambda:InvokeFunction
policyPowertools for AWS Lambda (Python) version
latest
AWS Lambda function runtime
3.12
Packaging format used
Lambda Layers
Debugging logs
The text was updated successfully, but these errors were encountered: