Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Connect TCP with an invalid address is silent in the event log

Aperta Adatta ai principianti
#241 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

@PRINCEKK122 ci sta già lavorando.

Dal 18/10/2026.

  • #242 di @PRINCEKK122 — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
77/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
desktop, devtools

Direzione di ricerca

Inizia con connect_tcp_with_validation_and_save in relay/src/update.rs, poi leggi tcp_validation_text in relay/src/view.rs e validate_tcp_addr in relay/src/state.rs. Segui come gli errori di connessione arrivano al registro eventi e come vengono visualizzati gli errori di convalida. Il lavoro è completato quando gli indirizzi vuoti e malformati rifiutati compaiono in Recent events con messaggi distinti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug

Pressing Connect TCP with an empty or malformed address does nothing visible in the event log. No connection is attempted and no entry is recorded, so the GUI looks like it ignored the press.

connect_tcp_with_validation_and_save (relay/src/update.rs:13) validates first. On failure it sets tcp_addr_validation_error and returns without calling tcp_connect, so none of the paths that normally report a connection problem are reached. The only feedback is one line of plain text rendered by tcp_validation_text (relay/src/view.rs:192), between the address box and the buttons, which is easy to miss.

The event log panel added in #183 exists so connection failures are visible. This is the one connection failure that never reaches it.

To Reproduce

  1. Start the relay.
  2. Leave the address box untouched. The greyed 127.0.0.1:9999 is placeholder text, not a value, so the field is empty.
  3. Press Connect TCP.
  4. Nothing appears in Recent events. The mock server never reports a connection. Pressing Check TCP Connection Status does nothing, because there is no connection to check.

Expected behavior

A rejected address is recorded in the event log like every other connection failure, and the message distinguishes an empty field from a malformed one.

Additional context

The empty-field case is the one that costs time, because validate_tcp_addr (relay/src/state.rs:345) returns the same "Invalid IP address" text for an empty string as for a typo, which reads as though something was typed wrong rather than not typed at all.

Hit while testing #234: roughly half an hour went to diagnosing a relay that appeared not to connect, with nothing in the log to work from.

Lingua principale
Python
Stelle
4
Fork
8
Merge medio
3g 6h
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di oss-slu/PilotDataSynchronization

Tutte le issue di oss-slu/PilotDataSynchronization

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.