wsk should remove trailing slash on apihost
- Lenguaje dominante
- Go
- Estrellas
- 109
- Forks
- 98
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Just spent an embarrassing amount of time trying to determine why the wsk CLI was working on one machine and not on another. The ultimate issue was that I ended up specifying the `APIHOST` variable as `https://localhost:8443/` in the config file, with the trailing slash, which causes 404s since the CLI was sending requests to `https://localhost:8443//api/v1/namespaces/_/triggers?limit=0&skip=0` (note the double-slash after the domain).
Guía de contribución
Línea de trabajo
Comienza rastreando cómo la CLI lee la configuración de APIHOST y construye las URL de las solicitudes. Reproduce el caso de la barra final y verifica después que las solicitudes usen un único separador y que la ruta de API afectada ya no devuelva un 404.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- go
- Área
- cli
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100