github / github/copilot-cli

Constantly encountered 'Authorization error, you may need to run /login'

Đang mở
#2,684 13 bình luận 1 reaction 0 người được giao Xem trên GitHub
area:authentication area:mcp
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

### Describe the bug

I have already logined, but constantly encountered 'Authorization error, you may need to run /login'

```
No copilot instructions found. Run /init to generate a copilot-instructions.md file for this project.

! Failed to load 1 skill. Run /skills for more details.

● Welcome shayne-snap!

! MCP server 'github-mcp-server' is taking longer than expected to connect.

! Failed to connect to MCP server 'github-mcp-server'. Execute '/mcp show github-mcp-server' to inspect or check the logs.

● Environment loaded: 2 skills

✗ Authorization error, you may need to run /login (Request ID: E959:39D085:5B45AD:6B5594:69DDA4E1)

! Failed to connect to MCP server 'github-mcp-server'. Execute '/mcp show github-mcp-server' to inspect or check the logs.

● GitHub MCP Server: Connected

● You have been logged out successfully.

! Failed to connect to MCP server 'github-mcp-server'. Execute '/mcp show github-mcp-server' to inspect or check the logs.

● MCP Servers reloaded: 0 servers connected

! Failed to connect to MCP server 'github-mcp-server'. Execute '/mcp show github-mcp-server' to inspect or check the logs.

● GitHub MCP Server: Connected

● Signed in successfully as shayne-snap!

! Failed to connect to MCP server 'github-mcp-server'. Execute '/mcp show github-mcp-server' to inspect or check the logs.

● MCP Servers reloaded: 0 servers connected

✗ Authorization error, you may need to run /login (Request ID: E959:39D085:5C765C:6CB527:69DDA53C)

● Welcome shayne-snap!

```

### Affected version

GitHub Copilot CLI 1.0.25

### Steps to reproduce the behavior

_No response_

### Expected behavior

_No response_

### Additional context

MacOS

uname -a
Darwin MacBook-Pro.local 25.0.0 Darwin Kernel Version 25.0.0: Mon Aug 25 21:17:53 PDT 2025; root:xnu-12377.1.9~3/RELEASE_ARM64_T8112 arm64

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start by reproducing the failure on macOS with GitHub Copilot CLI 1.0.25, then inspect the `/login` flow and `/mcp show github-mcp-server` output and logs. Determine why authentication fails after a reported successful sign-in, and verify that the authorization error no longer recurs during MCP connection and reload operations.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
github, shell
Lĩnh vực
authentication, cli
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.