Skip to content

[TRI-1200] @trigger.dev/stripe triggers should not allow invalid events #426

@ericallam

Description

@ericallam

Currently we don't do any client-side filtering of events passed to triggers:

stripe.onPrice({ events: ["price.created", "this.is.invalid"] })

Other than TypeScript errors, nothing will stop the above trigger to attempt to register the this.is.invalid event, which will result in an error response from the Stripe API. We should filter these out (and print a warning) to prevent this issue.

TRI-1200

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions