github / github/copilot-cli

WebFetchRedirectError: Redirects are not followed for OpenAI documentation URLs

Open
#3,890 0 comments 1 reaction 0 assignees View on GitHub
area:tools
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

### 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_

Contributor guide

Open the contributing guide

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli, networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.