Open zmillman opened 2 weeks ago
Hey @zmillman, thanks for reaching out. Currently our wrapHandler
function does not support streamifyResponse
. If you still want to use wrapHandler
make sure you pass a function that takes the correct arguments.
We will put this issue onto our backlog to support streamifyResponse
.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/aws-serverless
SDK Version
8.15.0
Framework Version
No response
Link to Sentry event
No response
SDK Setup/Reproduction Example
Steps to Reproduce
Expected Result
Code should execute identically as if there had been no
Sentry.wrapHandler
(returning "hello")Actual Result
Error logs from code above:
My guess is that
wrapHandler
wasn't written to detect the streaming Lambda handler which takes different arguments than the default handler.The Sentry docs have this snippet:
...but the AWS streaming handler expects the second argument to be
responseStream
(notcontext
)