Bug: AppSync events onSubscribe
resolver return type should be ignored
#3884
Labels
bug
Something isn't working
completed
This item is complete and has been merged/shipped
event-handler
This item relates to the Event Handler Utility
Expected Behavior
When I create an
onSubscribe
handler using theAppSyncEventsResolver
from the Event Handler utility I should not have to worry about mistakenly breaking subscriptions, if I leave a return statement in the handler.Current Behavior
Whenever the
onSubscribe
handler returns something the subscription will fail with this error:Code snippet
Steps to Reproduce
Deploy the code above, and try to subscribe to the
foo/*
channel.Possible Solution
Similar to what Powertools for AWS Lambda (Python) does here, we should ignore the return of the
onSubscribe
handler.Powertools for AWS Lambda (TypeScript) version
latest
AWS Lambda function runtime
22.x
Packaging format used
npm
Execution logs
The text was updated successfully, but these errors were encountered: