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

Error when using upload #70

Open
petems opened this issue Dec 8, 2015 · 0 comments
Open

Error when using upload #70

petems opened this issue Dec 8, 2015 · 0 comments

Comments

@petems
Copy link

petems commented Dec 8, 2015

I'm using a script that has the following Vimeo Upload like this:

upload = Vimeo::Advanced::Upload.new(@consumerKey, @consumerSecret, :token => @token, :secret => @tokenSecret)

  setTitle = Vimeo::Advanced::Video.new(@consumerKey, @consumerSecret, :token => @token, :secret => @tokenSecret)

  video = upload.upload(file)
  @video_id = video["ticket"]["video_id"]
  puts "Vimeo Video ID: #{@video_id}"
  setTitle.set_title("#{@video_id}", "#{@title}")

When I run that against a mp4 about 64MB, I get this error:

/opt/rubies/2.1.2/lib/ruby/gems/2.1.0/gems/vimeo-1.5.4/lib/vimeo/advanced/simple_upload/task.rb:97:in `received_chunk_sizes': undefined method `[]' for nil:NilClass (NoMethodError)
    from /opt/rubies/2.1.2/lib/ruby/gems/2.1.0/gems/vimeo-1.5.4/lib/vimeo/advanced/simple_upload/task.rb:85:in `valid?'
    from /opt/rubies/2.1.2/lib/ruby/gems/2.1.0/gems/vimeo-1.5.4/lib/vimeo/advanced/simple_upload/task.rb:23:in `execute'
    from /opt/rubies/2.1.2/lib/ruby/gems/2.1.0/gems/vimeo-1.5.4/lib/vimeo/advanced/simple_upload.rb:32:in `upload_io'
    from /opt/rubies/2.1.2/lib/ruby/gems/2.1.0/gems/vimeo-1.5.4/lib/vimeo/advanced/simple_upload.rb:45:in `upload_file'
    from /opt/rubies/2.1.2/lib/ruby/gems/2.1.0/gems/vimeo-1.5.4/lib/vimeo/advanced/simple_upload.rb:20:in `upload'```

Using 1.5.4 of the gem

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

1 participant