Bug #13920
closedarvados-cli fails with ruby versions >= 2.3.7
100%
Description
When using arvados-cli
with ruby 2.3.7 or above, it errors out with the following error message:
Failed to connect to Arvados API server: header field value cannot include CR/LF
Updated by Lucas Di Pentima over 6 years ago
The issue is caused by the fact that newer versions of Ruby don't accept \n
on header fields, and the google-api-client
gem we're using sometimes adds it.
One option is to upgrade the google-api-client
gem to version 0.20.0 or above (see https://github.com/google/google-api-ruby-client/pull/648/commits/ee8c922dbf9cef79284d4b83d16d4d73008a6e8f) but that's isn't trivial because from version 0.9 onwards, this gem significantly changed its way of working, and it's not compatible with our arvados
gem.
The other option would be to monkeypatch the google-api-client
gem from our own arvados
gem.
Updated by Lucas Di Pentima over 6 years ago
Updates at c0b02133b - branch 13920-arvados-gem-with-newer-rubies
Test run: https://ci.curoverse.com/job/developer-run-tests/828/
Monkeypatch google-api-client
after requiring it on the arvados
gem.
Updated by Lucas Di Pentima over 6 years ago
How to test:
1. Build the new arvados
gem
2. With rvm install ruby 2.3.7 or 2.4.4
3. Create a gemset and install the newly created arvados
gem and then install arvados-cli
gem
4. Set up vars to access some arvados instance
5. Execute "arv user current
", it should work without issues.
Updated by Lucas Di Pentima over 6 years ago
- Status changed from In Progress to Resolved
Applied in changeset arvados|43175f034f8015c6ca89a04fa8d9a322cf156265.
Updated by Ward Vandewege over 6 years ago
- Related to Bug #14153: [gem] make google-api-client compatible with ruby 2.3.7 added
Updated by Ward Vandewege about 5 years ago
- Related to Bug #16043: There was an error while trying to load the gem 'arvados'.Gem Load Error is: can't modify frozen String added
Updated by Lucas Di Pentima over 3 years ago
- Related to Bug #17738: [ruby] sudden gem load errors on ubuntu 18.04 (ruby 2.5.1) added