Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Misleading auth errors: CLOUDFLARE_PROFILE ignored, a missing --profile reported as "No authentication token found", a wrong account id as "Authentication error"

Abierto
#101 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

not-in-wrangler

cf version: 1.0.0-beta.5, macOS

Three auth and config mistakes produce errors that point the wrong way:

  1. CLOUDFLARE_PROFILE is ignored. CLOUDFLARE_PROFILE=nosuchprofile cf workers list --per-page 1 succeeds with the default credentials. It neither uses nor rejects the profile.
  2. A missing profile reads like a missing login. cf workers list --profile nosuchprofile gives No authentication token found. instead of "profile nosuchprofile not found (available: ...)".
  3. A wrong account id reads like a bad token. CLOUDFLARE_ACCOUNT_ID=00000000000000000000000000000000 cf workers list gives [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. against cf 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/).

Lenguaje dominante
TypeScript
Estrellas
853
Forks
42
Merge medio
17 h 59 min
PR fusionados (30 d)
145

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de cloudflare/cf

Todos los issues de cloudflare/cf

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.