Skip to content

Fix "something went wrong" during registration#371

Closed
nekeal wants to merge 1 commit into
EuroPython:mainfrom
nekeal:370-fix-something-went-wrong-during-registration
Closed

Fix "something went wrong" during registration#371
nekeal wants to merge 1 commit into
EuroPython:mainfrom
nekeal:370-fix-something-went-wrong-during-registration

Conversation

@nekeal

@nekeal nekeal commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Most likely this is the reason discord

When I simply added time.sleep at the end of the on_submit method, I was able to reproduce issue locally.

async def on_submit(self, interaction: discord.Interaction) -> None:
    .....
    await self.log_registration_to_channel(interaction, name=name, order=order, roles=roles)
    await self.registration_logger.mark_as_registered(tickets[0])
    _logger.info(f"Registration successful: {order=}, {name=}")
    time.sleep(2.5)

The fix is to respond to an interaction asap and after successful registration, replace the message.

After submitting a form:

image

Then, in case of error it becomes:

image

And on success:

image

@nekeal nekeal force-pushed the 370-fix-something-went-wrong-during-registration branch from b22b662 to a56b0a6 Compare July 12, 2026 16:14
@nekeal nekeal marked this pull request as ready for review July 12, 2026 16:14
@nekeal nekeal force-pushed the 370-fix-something-went-wrong-during-registration branch from a56b0a6 to 317aba9 Compare July 12, 2026 16:17
@NMertsch

Copy link
Copy Markdown
Contributor

Thank you, that makes sense. I reverted f847b2c in eb6be67, and added 54b43c6 to apply your fix.

@NMertsch NMertsch closed this Jul 12, 2026
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.

2 participants