Title: [TRI-1200] `@trigger.dev/stripe` triggers should not allow invalid events · Issue #426 · triggerdotdev/trigger.dev · GitHub
Open Graph Title: [TRI-1200] `@trigger.dev/stripe` triggers should not allow invalid events · Issue #426 · triggerdotdev/trigger.dev
X Title: [TRI-1200] `@trigger.dev/stripe` triggers should not allow invalid events · Issue #426 · triggerdotdev/trigger.dev
Description: 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 t...
Open Graph Description: 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 ab...
X Description: 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, ...
Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/426
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[TRI-1200] `@trigger.dev/stripe` triggers should not allow invalid events","articleBody":"Currently we don't do any client-side filtering of events passed to triggers:\r\n\r\n```\r\nstripe.onPrice({ events: [\"price.created\", \"this.is.invalid\"] })\r\n```\r\n\r\nOther 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.\n\n\u003csub>[TRI-1200](https://linear.app/triggerdotdev/issue/TRI-1200/triggerdevstripe-triggers-should-not-allow-invalid-events)\u003c/sub>","author":{"url":"https://github.com/ericallam","@type":"Person","name":"ericallam"},"datePublished":"2023-09-01T20:35:01Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/426"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4cc26a17-ba1d-2ed8-dd94-80ae76609557 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CBE6:371CF:37DA0F:52FC01:6AFAE223 |
| html-safe-nonce | 427a145805e1dd78280239f8775c7365c5cac50316c04a3f4b62f94496927c99 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkU2OjM3MUNGOjM3REEwRjo1MkZDMDE6NkFGQUUyMjMiLCJ2aXNpdG9yX2lkIjoiNDM2ODk3NjMzMTY5ODUyODgwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 29e1be50e0ac399a49ec775a4fc8df23da85171d9de17d58edefb275d04c5309 |
| hovercard-subject-tag | issue:1878016760 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/triggerdotdev/trigger.dev/426/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e0da61ac8f4a2cbc788801b9b87b725f34d692617a3f1eb9710df351db44e594/triggerdotdev/trigger.dev/issues/426 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e0da61ac8f4a2cbc788801b9b87b725f34d692617a3f1eb9710df351db44e594/triggerdotdev/trigger.dev/issues/426 |
| og:image:alt | 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 ab... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ericallam |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9d9bd51a568909a83d1abb9d6f74d68f0c87ca85fe3a56d3f5d70d8b89add9f2 |
| turbo-cache-control | no-preview |
| go-import | github.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git |
| octolytics-dimension-user_id | 95297378 |
| octolytics-dimension-user_login | triggerdotdev |
| octolytics-dimension-repository_id | 572570113 |
| octolytics-dimension-repository_nwo | triggerdotdev/trigger.dev |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 572570113 |
| octolytics-dimension-repository_network_root_nwo | triggerdotdev/trigger.dev |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a7ae932999cc6d511008dbf980ff9efad2a31f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width