Skip to content

node transfer list fails with option --once-only=yes (infinite loop) #253

@cbrown1234

Description

@cbrown1234

This relates to IBM support ticket TS021925049, from where I was directed to raise an issue here

Version details

ascli --version
4.25.5

HSTS servers version: 4.4.7.1

This works fine

ascli node transfer list --log-level=debug --preset=demo-source --format=json 

However this errors:

#! /bin/bash

set -euo pipefail

ascli config preset update demo-source --url="https://<our hsts cluster's load balancer>:9092" --username='$USERNAME_SOURCE' --password="$PASSWORD_SOURCE"

ascli node transfer list --log-level=debug --preset=demo-source --format=json --once-only=yes >> transfer.log.yaml 2>> transfer.error.log

It seems to get stuck in an indefinite loop before eventually erroring with the error:

...
DEBG URI=https://<our hsts cluster's load balancer>:9092/ops/transfers?iteration_token=🔑
DEBG response: code=200, mime=application/json, content-type=application/json; charset=utf-8
DEBG result: code=200 mime=application/json
DEBG result_data (json)=
[
   <redacted>
]
DEBG raise_on_error GET /ops/transfers?iteration_token=🔑
DEBG result=http:#<Net::HTTPOK:0x00007e0c86481ff0>, data:Array
DEBG call GET [ops/transfers]
DEBG using Basic auth
DEBG send request (retries=0)
DEBG query (json)=
{
  "iteration_token": [
    "",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29",
    "29"
  ]
}
DEBG URI=https://<our hsts cluster's load balancer>:9092/ops/transfers?iteration_token=🔑
DEBG response: code=200, mime=application/json, content-type=application/json; charset=utf-8
DEBG result: code=200 mime=application/json
ERRR Other(JSON::ParserError): unexpected character: ']' at line 1 column 7
DEBG Backtrace:
/home/linuxbrew/.linuxbrew/Cellar/ruby/4.0.2/lib/ruby/4.0.0/json/common.rb:353:in 'JSON::Ext::Parser.parse'
/home/linuxbrew/.linuxbrew/Cellar/ruby/4.0.2/lib/ruby/4.0.0/json/common.rb:353:in 'JSON.parse'
/home/linuxbrew/.linuxbrew/lib/ruby/gems/4.0.0/gems/aspera-cli-4.25.5/lib/aspera/rest.rb:461:in 'Aspera::Rest#call'
/home/linuxbrew/.linuxbrew/lib/ruby/gems/4.0.0/gems/aspera-cli-4.25.5/lib/aspera/rest.rb:550:in 'Aspera::Rest#read'
/home/linuxbrew/.linuxbrew/lib/ruby/gems/4.0.0/gems/aspera-cli-4.25.5/lib/aspera/api/node.rb:537:in 'block in Aspera::Api::Node#read_with_paging'
/home/linuxbrew/.linuxbrew/lib/ruby/gems/4.0.0/gems/aspera-cli-4.25.5/lib/aspera/api/node.rb:536:in 'Kernel#loop'
/home/linuxbrew/.linuxbrew/lib/ruby/gems/4.0.0/gems/aspera-cli-4.25.5/lib/aspera/api/node.rb:536:in 'Aspera::Api::Node#read_with_paging'
/home/linuxbrew/.linuxbrew/lib/ruby/gems/4.0.0/gems/aspera-cli-4.25.5/lib/aspera/cli/plugins/node.rb:889:in 'Aspera::Cli::Plugins::Node#execute_action'
/home/linuxbrew/.linuxbrew/lib/ruby/gems/4.0.0/gems/aspera-cli-4.25.5/lib/aspera/cli/main.rb:232:in 'Aspera::Cli::Main#process_command_line'
/home/linuxbrew/.linuxbrew/lib/ruby/gems/4.0.0/gems/aspera-cli-4.25.5/bin/ascli:36:in '<top (required)>'
/home/linuxbrew/.linuxbrew/Cellar/ruby/4.0.2/lib/ruby/4.0.0/rubygems.rb:304:in 'Kernel#load'
/home/linuxbrew/.linuxbrew/Cellar/ruby/4.0.2/lib/ruby/4.0.0/rubygems.rb:304:in 'Gem.activate_and_load_bin_path'
/home/linuxbrew/.linuxbrew/lib/ruby/gems/4.0.0/bin/ascli:25:in '<main>'
/home/linuxbrew/.linuxbrew/Cellar/ruby/4.0.2/lib/ruby/4.0.0/json/common.rb:353:in 'JSON::Ext::Parser.parse': unexpected character: ']' at line 1 column 7 (JSON::ParserError)
	from /home/linuxbrew/.linuxbrew/Cellar/ruby/4.0.2/lib/ruby/4.0.0/json/common.rb:353:in 'JSON.parse'
	from /home/linuxbrew/.linuxbrew/lib/ruby/gems/4.0.0/gems/aspera-cli-4.25.5/lib/aspera/rest.rb:461:in 'Aspera::Rest#call'
	from /home/linuxbrew/.linuxbrew/lib/ruby/gems/4.0.0/gems/aspera-cli-4.25.5/lib/aspera/rest.rb:550:in 'Aspera::Rest#read'
	from /home/linuxbrew/.linuxbrew/lib/ruby/gems/4.0.0/gems/aspera-cli-4.25.5/lib/aspera/api/node.rb:537:in 'block in Aspera::Api::Node#read_with_paging'
	from /home/linuxbrew/.linuxbrew/lib/ruby/gems/4.0.0/gems/aspera-cli-4.25.5/lib/aspera/api/node.rb:536:in 'Kernel#loop'
	from /home/linuxbrew/.linuxbrew/lib/ruby/gems/4.0.0/gems/aspera-cli-4.25.5/lib/aspera/api/node.rb:536:in 'Aspera::Api::Node#read_with_paging'
	from /home/linuxbrew/.linuxbrew/lib/ruby/gems/4.0.0/gems/aspera-cli-4.25.5/lib/aspera/cli/plugins/node.rb:889:in 'Aspera::Cli::Plugins::Node#execute_action'
	from /home/linuxbrew/.linuxbrew/lib/ruby/gems/4.0.0/gems/aspera-cli-4.25.5/lib/aspera/cli/main.rb:232:in 'Aspera::Cli::Main#process_command_line'
	from /home/linuxbrew/.linuxbrew/lib/ruby/gems/4.0.0/gems/aspera-cli-4.25.5/bin/ascli:36:in '<top (required)>'
	from /home/linuxbrew/.linuxbrew/Cellar/ruby/4.0.2/lib/ruby/4.0.0/rubygems.rb:304:in 'Kernel#load'
	from /home/linuxbrew/.linuxbrew/Cellar/ruby/4.0.2/lib/ruby/4.0.0/rubygems.rb:304:in 'Gem.activate_and_load_bin_path'
	from /home/linuxbrew/.linuxbrew/lib/ruby/gems/4.0.0/bin/ascli:25:in '<main>'

(Full logs have been uploaded to the IBM support ticket)

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions