Skip to content

fix(espol_bot): the Académico sign-in starts even when its mailbox id begins with a dash - #174

Merged
SebasB76 merged 1 commit into
mainfrom
fix/portal-worker-dash-mailbox
Nov 14, 2026
Merged

SebasB76 merged 1 commit into
mainfrom
fix/portal-worker-dash-mailbox

Conversation

@SebasB76

Copy link
Copy Markdown
Owner

What

About 1 in 64 Académico sign-ins never sent the «🎓 Conectar Académico» button. Vinci said the button was on its way, but nothing arrived.

relay.issue names the mailbox with secrets.token_urlsafe(24), which starts with - one time in 64. portal_login.launch started the worker as espol-bot portal-worker <mailbox>, so argparse read the mailbox as an option and exited (error: the following arguments are required: mailbox in portal-worker.log). The mailbox stayed in starting until the next request replaced it. The worker is now started with -- <mailbox>.

Found in the E2E for #173: test_academico step 5 (the second sign-in) waited 120 s for the button, and the worker log had exactly that error. I reproduced it by hand: espol-bot portal-worker -abc gives the same error, and portal-worker -- -abc gets past argparse. The E2E was not rerun; per AGENTS.md, a one-line fix doesn't get a rerun.

Docs: none needed. The flow in uso.md and features/academico.md is unchanged, and this only fixes a launch that sometimes failed.

… begins with a dash

secrets.token_urlsafe gives a mailbox starting with "-" one time in 64. The worker
was started as `portal-worker <mailbox>`, argparse read it as an option and exited,
so no «Conectar Académico» button arrived and the mailbox stayed in "starting".
The worker now gets `-- <mailbox>`.
@SebasB76
SebasB76 merged commit d52aef6 into main Nov 14, 2026
1 check passed
@SebasB76
SebasB76 deleted the fix/portal-worker-dash-mailbox branch November 14, 2026 22:55
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.

1 participant