Inviting a member fails the first time

I know there are some known issues about inviting a team member, and I couldn't find a Github issue that's related (so I would appreciate if someone knows of one already!). This seems like a specific flow that happens:

  1. I invite a teammate.
  2. They never receive an invite.
  3. I have to deactivate the existing user by first replacing the original email with an alternate email.
  4. I create a new user with the original email again.
  5. The invite arrives 5 hours later. It works.

This has happened five times now. Luckily, the receiver accepted the invite before it expired.

Has anyone had this specific situation take place?

what version are you running? are you using sso? what environment variables are you using?