Project

General

Profile

Actions

Bug #4412

closed

[SDKs] arv edit fails under Ruby 2.1.4

Added by Brett Smith about 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
SDKs
Target version:
Story points:
0.5

Description

When you run arv edit under Ruby 2.1.4, doing normal edit work, there's an exception when it calls the Arvados API update method. You get the message Error communicating with server, error was undefined method `bytesize' for #<Hash:0x000000016b6740>. Here's the backtrace:

/usr/local/rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/net/http/generic_request.rb:179:in `send_request_with_body': undefined method `bytesize' for #<Hash:0x00000001abaf58> (NoMethodError)
        from /usr/local/rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/net/http/generic_request.rb:130:in `exec'
        from /usr/local/rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/net/http.rb:1406:in `block in transport_request'
        from /usr/local/rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/net/http.rb:1405:in `catch'
        from /usr/local/rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/net/http.rb:1405:in `transport_request'
        from /usr/local/rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/net/http.rb:1378:in `request'
        from /usr/local/rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/net/http.rb:1371:in `block in request'
        from /usr/local/rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/net/http.rb:853:in `start'
        from /usr/local/rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/net/http.rb:1369:in `request'
        from /usr/local/rvm/gems/ruby-2.1.4/gems/faraday-0.9.0/lib/faraday/adapter/net_http.rb:80:in `perform_request'
        from /usr/local/rvm/gems/ruby-2.1.4/gems/faraday-0.9.0/lib/faraday/adapter/net_http.rb:39:in `call'
        from /usr/local/rvm/gems/ruby-2.1.4/gems/faraday-0.9.0/lib/faraday/response.rb:8:in `call'
        from /usr/local/rvm/gems/ruby-2.1.4/gems/google-api-client-0.7.1/lib/google/api_client/request.rb:164:in `send'
        from /usr/local/rvm/gems/ruby-2.1.4/gems/google-api-client-0.7.1/lib/google/api_client.rb:598:in `block in execute!'
        from /usr/local/rvm/gems/ruby-2.1.4/gems/retriable-1.4.1/lib/retriable/retry.rb:27:in `perform'
        from /usr/local/rvm/gems/ruby-2.1.4/gems/retriable-1.4.1/lib/retriable.rb:15:in `retriable'
        from /usr/local/rvm/gems/ruby-2.1.4/gems/google-api-client-0.7.1/lib/google/api_client.rb:595:in `execute!'
        from /usr/local/rvm/gems/ruby-2.1.4/gems/google-api-client-0.7.1/lib/google/api_client.rb:634:in `execute'
        from /usr/local/rvm/gems/ruby-2.1.4/gems/arvados-cli-0.1.20141017205431/bin/arv:90:in `execute'
        from /usr/local/rvm/gems/ruby-2.1.4/gems/arvados-cli-0.1.20141017205431/bin/arv:303:in `arv_edit'
        from /usr/local/rvm/gems/ruby-2.1.4/gems/arvados-cli-0.1.20141017205431/bin/arv:123:in `check_subcommands'
        from /usr/local/rvm/gems/ruby-2.1.4/gems/arvados-cli-0.1.20141017205431/bin/arv:629:in `<top (required)>'
        from /usr/local/rvm/gems/ruby-2.1.4/bin/arv:23:in `load'
        from /usr/local/rvm/gems/ruby-2.1.4/bin/arv:23:in `<main>'
        from /usr/local/rvm/gems/ruby-2.1.4/bin/ruby_executable_hooks:15:in `eval'
        from /usr/local/rvm/gems/ruby-2.1.4/bin/ruby_executable_hooks:15:in `<main>'
Actions

Also available in: Atom PDF