-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
TypeError: callback is not a function thrown by Sentry.GCPFunction.wrapCloudEventFunction #9044
Comments
Hi @dancallaghan thanks for reporting and thanks for already debugging the issue! Since you already found the responsible line, are you interested in submitting a PR? We'd make sure to mention you as a contributor in the next release. If not, no worries, we'll try to fix it ourselves eventually. |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you remove the label "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Fix released with https://github.com/getsentry/sentry-javascript/releases/tag/7.112.0 - thank you @tcoyze for contributing!! |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/serverless
SDK Version
7.69.0
Framework Version
No response
Link to Sentry event
No response
SDK Setup
Steps to Reproduce
Expected Result
No error is thrown
Actual Result
A
TypeError: callback is not a function error
is thrown after the handler function has finished executing.This is the offending line of code https://github.com/getsentry/sentry-javascript/blob/master/packages/serverless/src/gcpfunction/cloud_events.ts#L62. It invokes a callback without checking if it exists first.
It looks like this was done for regular events, but not for cloud events.
See the following:
The text was updated successfully, but these errors were encountered: