Skip to content

Conversation

@allanlasser
Copy link
Member

We've observed a crash in our Stripe webhook handler for charge_succeeded events. This guards against unexpectedly shaped invoice data in our handler.

https://muckrock.sentry.io/issues/7116551588/?project=1422309&query=is%3Aunresolved%20issue.priority%3A%5Bhigh%2C%20medium%5D&referrer=issue-stream

@allanlasser allanlasser temporarily deployed to squarelet-pi-protected--cgkzcw January 27, 2026 18:50 Inactive
We've observed a crash in our Stripe webhook handler for `charge_succeeded` events. This guards against unexpectedly shaped invoice data in our handler.
@allanlasser allanlasser force-pushed the protected-invoice-access branch from 9a03f36 to af8f07f Compare January 27, 2026 19:44
@allanlasser allanlasser temporarily deployed to squarelet-pi-protected--cgkzcw January 27, 2026 19:44 Inactive
@duckduckgrayduck duckduckgrayduck self-requested a review January 27, 2026 20:10
@duckduckgrayduck duckduckgrayduck temporarily deployed to squarelet-pi-protected--cgkzcw January 27, 2026 20:10 Inactive
Copy link
Contributor

@duckduckgrayduck duckduckgrayduck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed pylint issues, but it appears that test_tasks is facing a pylint issue

************* Module squarelet.organizations.tests.test_tasks
squarelet/organizations/tests/test_tasks.py:44:0: C0302: Too many lines in module (1020/1000) (too-many-lines)

We can choose to silence this error or refactor these tests to split them up. I'll leave that to you.

@allanlasser
Copy link
Member Author

Hmm, definitely a sign we need a refactor, but I don't want to introduce a bunch of unrelated changes in this commit. I will suppress the warning here and open an issue to refactor the test_tasks.py file—and probably tasks.py while we're at it.

@allanlasser
Copy link
Member Author

#558

@allanlasser allanlasser temporarily deployed to squarelet-pi-protected--cgkzcw January 27, 2026 21:54 Inactive
@allanlasser allanlasser temporarily deployed to squarelet-pi-protected--cgkzcw January 27, 2026 22:05 Inactive
@allanlasser allanlasser merged commit 344a387 into master Jan 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants