In mac, terminal freezes when taking JWT token as getpass input
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 77.2k
- Fork
- 35.9k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
Bug report
Bug description:
Issue Title: Terminal freezes on macOS when passing a JWT token via getpass
Summary
When attempting to input a long string—specifically a JSON Web Token (JWT)—using Python's getpass module in the macOS Terminal, the terminal application hangs and freezes completely, requiring a force quit.
Steps to Reproduce
Open Terminal (or iTerm2) on macOS.
Run a Python script or interactive shell that calls getpass.getpass().
Paste a standard long JWT string into the prompt.
Observe the terminal freeze/hang.
Expected Behavior
The terminal should accept the input securely (masking characters if applicable) without locking up, allowing the script to proceed.
Actual Behavior
The terminal interface stops responding entirely
Environment
OS: macOS (any version 10+)
CPython versions tested on:
3.13
Operating systems tested on:
macOS
Linked PRs
- gh-157805
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia riproducendo getpass.getpass() in macOS Terminal o iTerm2 con un JWT lungo, quindi esamina la PR collegata gh-157805 per il lavoro già in corso. Il lavoro è completato quando il terminale rimane reattivo e lo script prosegue dopo che il JWT è stato incollato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- cli, operating-systems
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 25/100