Hi.Events icon indicating copy to clipboard operation
Hi.Events copied to clipboard

🌟Ability to completely wipe event data

Open CommittotheIndian opened this issue 3 months ago • 1 comments

Please consider building in the ability to wipe users/attendees/data. I'm not exactly sure how that should look but here's the scenario.

I built some events and used Stripe sandbox to test. I had a couple users testing. Those users used their legit email addresses. They became customers in Stripe's sandbox. Even after deleting the customers from the Stripe sandbox, archiving the event, and (so I thought, apparently not stripe_customers) wiping the hi.events database, those customers and their cus_id were retained.

The issue is Stripe will give a 422 Unprocessable Entity. It thinks the customer is already there (in the sandbox) and can't process because I'm now on live/prod Stripe.

Image

This caused 404 errors in stripe (note the photo above was after I changed the emails and confirmed functionality).

{
  "error": {
    "code": "resource_missing",
    "doc_url": "https://stripe.com/docs/error-codes/resource-missing",
    "message": "No such customer: 'cus_SpuC6UXcsm5MoB'",
    "param": "id",
    "request_log_url": "https://dashboard.stripe.com/logs/req_2wiP3s0CewxYDk?t=1756916087",
    "type": "invalid_request_error"
  }
}
{
  "error": {
    "code": "resource_missing",
    "doc_url": "https://stripe.com/docs/error-codes/resource-missing",
    "message": "No such customer: 'cus_Sq3IdWEJUbt5Je'",
    "param": "id",
    "request_log_url": "https://dashboard.stripe.com/logs/req_NM4M8ZjOSKI21G?t=1756916036",
    "type": "invalid_request_error"
  }
}

Since you can't enter null for the email, I just made it a random of the head email address. So as long as a user doesn't have the email of [email protected] it should work.

I'm thinking this was related to https://github.com/HiEventsDev/Hi.Events/issues/337 but since they recreated the entire DB, they never got to the final issue.

CommittotheIndian avatar Sep 03 '25 17:09 CommittotheIndian

Hi @CommittotheIndian,

Thank you for the report! this will be fixed in the next version.

daveearley avatar Sep 03 '25 20:09 daveearley