YSK: Hitting submit more than once will post your comment/thread multiple times, even with the lag

With the sluggishness of the site these last few days you can sometimes get slowness or infinitely loading icon when hitting submit. If you aren’t sure if your post submitted, refresh the original page in a different tab before hitting submit again to see if it went through. I see double and triple posts in almost every comment section.

martinbasic,
@martinbasic@lemmy.world avatar

…And I learned that I need to copy the whole comment I type before submit jic my comment didn’t upload, at least I have my comment restored.

FlagonOfMe,

I made a post and got “network error”, but it turns out it went through anyway. Took three tries to not get the error, so I ended up making three posts. Had to delete the two extras.

can,

And then the delete doesn’t federate fast enough :/

FlagonOfMe,

Speaking of not fast… I just got 8 comment replies in my inbox that were made up to 3 days ago.

can,

Were they from lemmy.workd? I know they were backed up for a few days but maybe the recent upgrades fixed it? I have posts that I know are missing lemmy.world comments from a week ago that met the same fate…

FlagonOfMe,

Nope, they were mostly local users.

Landrin201,
@Landrin201@lemmy.ml avatar

I can confirm this is true in Jerboa; learned the other day the hard way.

PeterPoopshit,

Only sometimes. Other times it won’t post your comment at all. I still check to make sure my comments don’t post more than once but sometimes the lag is so bad it’s impossible to do even that.

_MoveSwiftly,

Hello there, and welcome to our community! I hope you like it in here.

Could you please include some body text as to why should people know this, and how would that help them? It’s our second rule. Thank you :)

consumer451, (edited )

Just to add to this, at least in wefwef, I sometimes get an error when I tap Post, saying that it failed. I am then left on the page, and can hit Post again. But it didn’t fail the first time, the post was made.

So this is not just users being impatient. There is a bug.

Nfamwap,

I’ve had the same on Liftoff

Nfamwap,

See what I did there…?

Nfamwap,

I’ve had the same on Liftoff

T156,

Might be due to either the websocket removal, or the sluggishness that does it.

The post processes, but the app doesn’t get a response confirming that the post has been made, so it sits there until the app times out.

consumer451, (edited )

I have not written real code for a very long time, and I don’t know the lemmy code base at all… but I described this bug to GPT-4 and it just turned me on to idempotency.

stripe.com/blog/idempotency

The call could succeed, but the connection breaks before the server can tell its client about it.

Seems like it’s non-trivial to implement in rust.

www.lpalmieri.com/posts/idempotency/

ThaijsClan,

I’ve had that happen a few time now too. I did it earlier today, the because of lag couldn’t delete the second comment. Thanks for the tip!

Tentaclius,

I don’t think it is related to the amount of times one clicked submit. Duplicated posts appear anyway.

chackl,

Yeah this has happened to me.

DanglingFury,

This is good to know. Upvoted for visibility.

Lemmypy,

This is the way

Lemmypy,

This is the way

DanglingFury,

This is good to know. Upvoted for visibility.

DanglingFury,

This is good to know. Upvoted for visibility.

ghariksforge,

My default now is top 6 hours.

jimmy90,

or you can check your personal history

Anti_Weeb_Penguin,
@Anti_Weeb_Penguin@lemmy.world avatar

I literally posted the same comment 8 times because of that 💀💀💀

  • All
  • Subscribed
  • Moderated
  • Favorites
  • youshouldknow@lemmy.world
  • DreamBathrooms
  • everett
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • GTA5RPClips
  • Durango
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • ngwrru68w68
  • tacticalgear
  • JUstTest
  • osvaldo12
  • tester
  • cubers
  • cisconetworking
  • mdbf
  • ethstaker
  • modclub
  • Leos
  • anitta
  • normalnudes
  • megavids
  • provamag3
  • lostlight
  • All magazines