Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use #create_block_blob method with IO/File object #61

Closed
rtyler opened this issue Nov 7, 2016 · 2 comments
Closed

Cannot use #create_block_blob method with IO/File object #61

rtyler opened this issue Nov 7, 2016 · 2 comments

Comments

@rtyler
Copy link

rtyler commented Nov 7, 2016

The call to #encoding only exists on String like objects`

/home/tyler/.rvm/gems/ruby-2.2.0/gems/azure-storage-0.11.3.preview/lib/azure/storage/blob/blob_service.rb:50:in `call': undefined method `encoding' for #<File:/srv/releases/jenkins/debian/jenkins_2.29_all.deb> (NoMethodError)
        from /home/tyler/.rvm/gems/ruby-2.2.0/gems/azure-storage-0.11.3.preview/lib/azure/storage/blob/block.rb:114:in `create_block_blob'
        from blob-sync:44:in `block (2 levels) in <main>'
        from /home/tyler/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/set.rb:283:in `each_key'
        from /home/tyler/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/set.rb:283:in `each'
        from blob-sync:39:in `block in <main>'
        from blob-sync:11:in `each'
        from blob-sync:11:in `<main>'
@yaxia
Copy link
Member

yaxia commented Nov 7, 2016

@rtyler Thanks for reporting this issue. We will fix it in an upcoming release.

This was referenced Nov 30, 2016
@yaxia
Copy link
Member

yaxia commented Nov 30, 2016

It is fixed in 0.11.4. Please take a try. Thanks.

@vinjiang vinjiang closed this as completed Dec 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants