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

Uncatched index error at runtime

Abierto
#3,661 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
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
62/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
go
Área
cli

Línea de trabajo

Comienza con commands/html5_base_command.go en la línea 272 y, después, sigue la llamada desde commands/html5_list_command.go en las líneas 161 y 207 para cf html5-list -di <my-destination-service-name> -u. Reproduce el comando si es posible y determina por qué el acceso al índice informado provoca un panic; se considera terminado cuando el comando devuelve una salida sin un error de ejecución de Go.

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

Descripción

Please fill out the issue checklist below and provide ALL the requested information.

  • I reviewed open and closed github issues that may be related to my problem.
  • I tried updating to the latest version of the CF CLI to see if it fixed my problem.
  • I attempted to run the command with CF_TRACE=1 to help debug the issue.
  • I am reporting a bug that others will be able to reproduce.
    • I am not sure

Describe the bug and the command you saw an issue with
Provide details on what you were trying to do (and why).

I tried to get the url of a html5 app from the html5 repo using the cf cli command as pointed out in https://help.sap.com/docs/bas/developing-html5-application/run-your-deployed-html5-application?locale=en-US.

I have installed the plugin for html5 repo.

I executed the following:

cf html5-list -di <my-destination-service-name> -u

What happened
A clear and concise description of what happen.

I received the following cli output:

Getting list of HTML5 applications available via destinations in org <my-org-name> / space <my-space-name> as <my-acount-email>...
panic: runtime error: index out of range [1] with length 1

goroutine 1 [running]:
cf-html5-apps-repo-cli-plugin/commands.(*HTML5Command).GetHTML5Context(0x1657960, {{0xc000018180, 0x15}, {0xc00018c090, 0x15}, {0xc0001c0510, 0x24}, {0xc0000163e0, 0xc}, {0xc00001a570, ...}})
        go/src/cf-html5-apps-repo-cli-plugin/commands/html5_base_command.go:272 +0x176a
cf-html5-apps-repo-cli-plugin/commands.(*ListCommand).ListDestinationApps(0x1657960, {0x205a97eed, 0x1375aa1}, 0x1, {0x0, 0x0})
        go/src/cf-html5-apps-repo-cli-plugin/commands/html5_list_command.go:207 +0x3e5
cf-html5-apps-repo-cli-plugin/commands.(*ListCommand).Execute(0x1657960, {0xc0000921b0, 0x3, 0x3})
        go/src/cf-html5-apps-repo-cli-plugin/commands/html5_list_command.go:161 +0xd3b
main.(*HTML5Plugin).Run(0x1372128, {0x13fd370, 0xc000186190}, {0xc0000921a0, 0x4, 0x4})
        go/src/cf-html5-apps-repo-cli-plugin/html5_plugin.go:46 +0x23d
cf-html5-apps-repo-cli-plugin/vendor/github.com/cloudfoundry/cli/plugin.Start({0x13f22a8, 0x1688570})
        go/src/cf-html5-apps-repo-cli-plugin/vendor/github.com/cloudfoundry/cli/plugin/plugin_shim.go:30 +0x2d8
main.main()
        go/src/cf-html5-apps-repo-cli-plugin/html5_plugin.go:68 +0x27

Expected behavior
A clear and concise description of what you expected to happen.

an output and no go error.

Exact Steps To Reproduce
Steps to reproduce the behavior; include the exact CLI commands and verbose output:

see above

Provide more context

  • platform and shell details
    • macOS 15.7.2 iTerm
  • version of the CLI you are running
    • cf version 8.17.0+7ea11c1.2025-11-19
  • version of the CC API Release you are on
    • I don't know
Lenguaje dominante
Go
Estrellas
1.9k
Forks
989
Merge medio
1 d 18 h
PR fusionados (30 d)
5

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 cloudfoundry/cli

Todos los issues de cloudfoundry/cli

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.