github / github/copilot-cli

WebFetchRedirectError: Redirects are not followed for OpenAI documentation URLs

Aperta
#3,890 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
area:tools
Lingua principale
Shell
Stelle
11.2k
Fork
1.9k
Merge medio
14h 16m
PR unite (30g)
6

Descrizione

### Describe the bug

When trying to fetch content from certain OpenAI documentation URLs, the tool fails with a WebFetchRedirectError instead of following the 301 redirect.

### Affected version

GitHub Copilot CLI 1.0.64-3.

### Steps to reproduce the behavior

1. Use a tool to fetch https://platform.openai.com/docs/guides/realtime
2. Observe the WebFetchRedirectError 301 redirect failure.

### Expected behavior

The tool should automatically follow 301 redirects to the updated documentation URLs (e.g., https://developers.openai.com/...).

### Additional context

_No response_

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Search the CLI for WebFetchRedirectError and trace the WebFetch HTTP request path, then reproduce the failure with the listed platform.openai.com URL. Verify the tool follows the 301 redirect to the corresponding developers.openai.com documentation URL, and run any nearby fetch tests or add coverage if the repository provides them.

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

Valutazione

Stack tecnologico
shell
Ambito
cli, networking
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
50/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.