Misleading auth errors: CLOUDFLARE_PROFILE ignored, a missing --profile reported as "No authentication token found", a wrong account id as "Authentication error"
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- api, authentication, cli
Hướng nghiên cứu
Start by reproducing the three cf workers list cases and compare them with cf auth whoami; inspect the profile and environment-variable handling referenced by related issue #37. Use FINDINGS.md and the findings/ directory for context. Done means the profile behavior is supported or documented, missing profiles are named, and account-id 403s point users toward checking the account id.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
cf version: 1.0.0-beta.5, macOS
Three auth and config mistakes produce errors that point the wrong way:
CLOUDFLARE_PROFILEis ignored.CLOUDFLARE_PROFILE=nosuchprofile cf workers list --per-page 1succeeds with the default credentials. It neither uses nor rejects the profile.- A missing profile reads like a missing login.
cf workers list --profile nosuchprofilegivesNo authentication token found.instead of "profile nosuchprofile not found (available: ...)". - A wrong account id reads like a bad token.
CLOUDFLARE_ACCOUNT_ID=00000000000000000000000000000000 cf workers listgives[10000] Authentication error(403). The token is fine; the account id isn't one the token can access.
Expected:
- honour
CLOUDFLARE_PROFILE, or document that it isn't supported; - name the missing profile;
- for a 403 on an
/accounts/{id}path, suggest checking the account id (e.g. againstcf auth whoami).
Related: #37 (document supported environment variables).
Found while evaluating cf for a dev workflow: https://github.com/joeblew999/cf-cli-test (FINDINGS.md, findings/).
- Ngôn ngữ chính
- TypeScript
- Star
- 993
- Fork
- 65
- Merge trung bình
- 21 giờ 40 phút
- Pull request đã merge (30 ngày)
- 211
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của cloudflare/cf
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
cloudflare/cf#344 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
upstream
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
cloudflare/cf#262 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`cf dev` rejects `--port` and `--host` for Vite projects, including the `cf init` templateCó thể đã có người làm @jamesopstad đã nhận 24 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
cloudflare/cf#223 · 2 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
upstream
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
cloudflare/cf#179 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`cf migrate` fails with `ERR_PNPM_IGNORED_BUILDS` in a pnpm workspace that has not approved workerdĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
cloudflare/cf#511 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của cloudflare/cf
Issue tương tự
-
Navbar avatar and name stay stale after saving profile changesCó thể đã có người làm @alexechoi đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
marmelab/atomic-crm#416 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature-request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
bluesky-social/social-app#12343 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
lucide-icons/lucide#5165 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Feature] Preferences - Keep the theme selection popover open after selection for quick previewĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
marktext/marktext#6033 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:desktop bug has repro platform:macos
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
anthropics/claude-code#107903 ·