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

`Internal Server Error. NoMethodError - undefined method 'starts_with?' for nil status:`

Abierto
#267 3 comentarios 0 reacciones 1 asignado Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
ruby
Área
cli

Línea de trabajo

Start with lib/aspera/rest/error_analyzer.rb:55, where the reported NoMethodError occurs, and trace how the 500 response is analyzed; the stack also points to the Faspex 5 package receive flow in lib/aspera/cli/plugins/faspex5.rb. Reproduce with the supplied ascli faspex5 packages receive command if the service is available, then verify error handling for a response that triggers the nil value.

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

Descripción

customer request

$ ascli faspex5 packages receive ALL --url='https://faspex.cancerimagingarchive.net/aspera/faspex/public/package?context=eyJyZXNvdXJjZSI6InBhY2thZ2VzIiwidHlwZSI6ImV4dGVybmFsX2Rvd25sb2FkX3BhY2thZ2UiLCJpZCI6IjY0NCIsInBhc3Njb2RlIjoiNzUyYjQ1ZThkYjVmN2RlZTJlMjBiNjgwZjEzNmZhM2MyNDUzNjY5MyIsInBhY2thZ2VfaWQiOiI2NDQiLCJlbWFpbCI6ImhlbHBAY2FuY2VyaW1hZ2luZ2FyY2hpdmUubmV0In0=&redirected=true&authenticated=true' --log-level=debug
...
DEBG send request (redirects=0)
DEBG query(json)Hash=
{
  "type": "received",
  "transfer_type": "connect",
  "recipient_user_id": "12"
}
DEBG URI=https://faspex.cancerimagingarchive.net/aspera/faspex/api/v5/packages/644/transfer_spec/download?type=received&transfer_type=connect&recipient_user_id=12
DEBG response: code=500, mime=application/json, content-type=application/json; charset=utf-8
DEBG result: code=500 mime=application/json
DEBG result_data(json)Hash=
{
  "status": "Internal Server Error",
  "code": "1000",
  "message": "An internal error occurred. Please check your logs to determine the cause and contact support. NoMethodError - undefined method 'starts_with?' for nil",
  "trace": "73d93246-2f34-413b-99ca-028475113254"
}
DEBG raise_on_error POST /aspera/faspex/api/v5/packages/644/transfer_spec/download?type=received&transfer_type=connect&recipient_user_id=12 500
ERRR Rest: An internal error occurred. Please check your logs to determine the cause and contact support. NoMethodError - undefined method 'starts_with?' for nil
status: Internal Server Error
code: 1000
trace: 73d93246-2f34-413b-99ca-028475113254
faspex.cancerimagingarchive.net 500 Internal Server Error
/my/temporary/directory/ocranoqlkno/gems/gems/aspera-cli-4.27.3/lib/aspera/rest/error_analyzer.rb:55:in 'Aspera::Rest::ErrorAnalyzer#raise_on_error': An internal error occurred. Please check your logs to determine the cause and contact support. NoMethodError - undefined method 'starts_with?' for nil (Aspera::Rest::CallError)
status: Internal Server Error
code: 1000
trace: 73d93246-2f34-413b-99ca-028475113254
faspex.cancerimagingarchive.net 500 Internal Server Error
        from /my/temporary/directory/ocranoqlkno/gems/gems/aspera-cli-4.27.3/lib/aspera/rest/client.rb:189:in 'Aspera::Rest::Client#call'
        from /my/temporary/directory/ocranoqlkno/gems/gems/aspera-cli-4.27.3/lib/aspera/cli/plugins/faspex5.rb:261:in 'block in Aspera::Cli::Plugins::Faspex5#package_receive'
        from /my/temporary/directory/ocranoqlkno/gems/gems/aspera-cli-4.27.3/lib/aspera/cli/plugins/faspex5.rb:257:in 'Array#each'
        from /my/temporary/directory/ocranoqlkno/gems/gems/aspera-cli-4.27.3/lib/aspera/cli/plugins/faspex5.rb:257:in 'Aspera::Cli::Plugins::Faspex5#package_receive'
        from /my/temporary/directory/ocranoqlkno/gems/gems/aspera-cli-4.27.3/lib/aspera/cli/plugins/faspex5.rb:505:in 'block (2 levels) in <class:Faspex5>'
        from /my/temporary/directory/ocranoqlkno/gems/gems/aspera-cli-4.27.3/lib/aspera/cli/plugins/base.rb:467:in 'BasicObject#instance_exec'
        from /my/temporary/directory/ocranoqlkno/gems/gems/aspera-cli-4.27.3/lib/aspera/cli/plugins/base.rb:467:in 'Aspera::Cli::Plugins::Base#invoke_action'
        from /my/temporary/directory/ocranoqlkno/gems/gems/aspera-cli-4.27.3/lib/aspera/cli/plugins/base.rb:484:in 'Aspera::Cli::Plugins::Base#execute_leaf'
        from /my/temporary/directory/ocranoqlkno/gems/gems/aspera-cli-4.27.3/lib/aspera/cli/plugins/base.rb:372:in 'Aspera::Cli::Plugins::Base#dispatch_leaf'
        from /my/temporary/directory/ocranoqlkno/gems/gems/aspera-cli-4.27.3/lib/aspera/cli/plugins/base.rb:355:in 'Aspera::Cli::Plugins::Base#dispatch_from_registry'
        from /my/temporary/directory/ocranoqlkno/gems/gems/aspera-cli-4.27.3/lib/aspera/cli/plugins/base.rb:420:in 'Aspera::Cli::Plugins::Base#dispatch_child'
        from /my/temporary/directory/ocranoqlkno/gems/gems/aspera-cli-4.27.3/lib/aspera/cli/plugins/base.rb:357:in 'Aspera::Cli::Plugins::Base#dispatch_from_registry'
        from /my/temporary/directory/ocranoqlkno/gems/gems/aspera-cli-4.27.3/lib/aspera/cli/plugins/base.rb:420:in 'Aspera::Cli::Plugins::Base#dispatch_child'
        from /my/temporary/directory/ocranoqlkno/gems/gems/aspera-cli-4.27.3/lib/aspera/cli/plugins/base.rb:357:in 'Aspera::Cli::Plugins::Base#dispatch_from_registry'
        from /my/temporary/directory/ocranoqlkno/gems/gems/aspera-cli-4.27.3/lib/aspera/cli/plugins/base.rb:324:in 'Aspera::Cli::Plugins::Base#execute_action'
        from /my/temporary/directory/ocranoqlkno/gems/gems/aspera-cli-4.27.3/lib/aspera/cli/runner.rb:143:in 'Aspera::Cli::Runner#run_with_result'
        from /my/temporary/directory/ocranoqlkno/gems/gems/aspera-cli-4.27.3/lib/aspera/cli/runner.rb:159:in 'Aspera::Cli::Runner#run'
        from /my/temporary/directory/ocranoqlkno/gems/gems/aspera-cli-4.27.3/bin/ascli:37:in '<top (required)>'
        from /my/temporary/directory/ocranoqlkno/src/ascli:5:in 'Kernel#load'
        from /my/temporary/directory/ocranoqlkno/src/ascli:5:in '<main>'

Context

$ ascli --version
4.27.3
$ uname --kernel-name --kernel-release
Linux 5.14.0-570.112.1.el9_6.x86_64
Lenguaje dominante
Ruby
Estrellas
100
Forks
23
Métricas de merge de PR
Sin PR fusionados en 30 d

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 IBM/aspera-cli

Todos los issues de IBM/aspera-cli

Issues similares

Más issues de Ruby

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.