Skip to content

Sentry wrapped function tries to delete my google cloud functions. #3023

@burtonator

Description

@burtonator

Package + Version

  • @sentry/browser

  • @sentry/node

  • raven-js

  • raven-node (raven for node)

  • other:

    "@google-cloud/functions-framework": "=1.7.1",
    "@sentry/serverless": "=5.27.2",
    "@types/aws-lambda": "=8.10.64"

Version:

5.27.2

Description

We're on GCP and deploying cloud functions to Firebase ...

When we deploy GCP tries to delete our functions:

The following functions are found in your project but do not exist in your local source code:
        StripeWebhook(us-central1)
        StripeWebhookTest(us-central1)

Our sentry wrapper function looks like this:

export namespace SentryFunctions {

    export function wrapHttpFunction(delegate: HttpFunction) {
        return Sentry.GCPFunction.wrapHttpFunction(delegate);
    }
}

... I think what's happening here is that , for some reason, your function is returning void, null, or undefined?

The code works just fine without this sentry wrapper.

I'm calling it like this

    return SentryFunctions.wrapHttpFunction(functions.https.onRequest(createApp(mode)));

If I call it like:

    return functions.https.onRequest(createApp(mode));

... then it works just fine.

Obviously we can't deploy like this and this is a pretty big bug.

I can try to deploy this way with our other functions but each deploy takes about 20-30 minutes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions