bug: an unknown --a2a-version is not a usage error

Aperta
#155 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@ConnorMoss02 ci sta già lavorando.

Dal 12/11/2026.

  • #157 di @ConnorMoss02 — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go
Ambito
cli

Direzione di ricerca

The flag value is accepted without validation, so unknown versions fall through to clientFactoryOpts, where no transports get registered. Start by finding where --a2a-version is parsed and where the 'no compatible transports found' error is produced. Done means an unsupported value fails early as a usage error that names the flag and lists the accepted values. Pull request #157 is already open against this issue, so check it before starting.

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

Descrizione

What happened?

--a2a-version only accepts 1.0 or 0.3. Any other value registers no transports in clientFactoryOpts, so the command fails with no compatible transports found, exit 1 as A2ACLI_ERR_INTERNAL. If the card can't be reached it exits 3 with a connectivity hint instead. Nothing says the flag value is the problem.

Steps to reproduce
  1. a2a server --echo --port 18431
  2. a2a send -a http://127.0.0.1:18431 --a2a-version 1 hi exits 1 with:
Error: failed to create a client: no compatible transports found: available transports - [HTTP+JSON_1.0]
  1. a2a send -a http://127.0.0.1:1 --a2a-version 1 hi exits 3 with failed to resolve agent card.
CLI version

main @ 5c95123

Operating system & environment

macOS (Darwin 25.6.0), arm64

Lingua principale
Go
Stelle
181
Fork
28
Merge medio
2g 11h
PR unite (30g)
22

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 a2aproject/a2a-cli

Tutte le issue di a2aproject/a2a-cli

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.