vimeo_me2 icon indicating copy to clipboard operation
vimeo_me2 copied to clipboard

Error to upload files to vimeo

Open mayander30 opened this issue 3 years ago • 5 comments

EXAMPLE: file = File.open("#{Rails.root}/public/recording/test/video.mp4") @token = Rails.application.credentials.dig(:vimeo, :token) @vimeo_client = VimeoMe2::User.new(@token) @vimeo_client.upload_video(file)

the video is uploaded but return error.

Something went wrong

To continue, contact our support team (make sure you have your IP address), and mention code W4A0F6.

mayander30 avatar Jan 14 '22 13:01 mayander30

me too...

2022-01-21T02:45:18Z 10 TID-gt21jtwx4 ERROR: /usr/local/bundle/gems/json-2.3.0/lib/json/common.rb:156:in `parse'
 /usr/local/bundle/gems/json-2.3.0/lib/json/common.rb:156:in `parse'
 /usr/local/bundle/bundler/gems/vimeo_me2-23fecd8dbe36/lib/vimeo_me2/http/http_request.rb:112:in `validate_response!'
 /usr/local/bundle/bundler/gems/vimeo_me2-23fecd8dbe36/lib/vimeo_me2/http/http_request.rb:26:in `make_http_request'
 /usr/local/bundle/bundler/gems/vimeo_me2-23fecd8dbe36/lib/vimeo_me2/base.rb:38:in `request'
 /usr/local/bundle/bundler/gems/vimeo_me2-23fecd8dbe36/lib/vimeo_me2/base.rb:18:in `block (2 levels) in <class:VimeoObject>'
 /usr/local/bundle/bundler/gems/vimeo_me2-23fecd8dbe36/lib/vimeo_me2/video.rb:58:in `update'
 /usr/local/bundle/bundler/gems/vimeo_me2-23fecd8dbe36/lib/vimeo_me2/user/upload.rb:35:in `change_name_and_get_video'
 /usr/local/bundle/bundler/gems/vimeo_me2-23fecd8dbe36/lib/vimeo_me2/user/upload.rb:12:in `upload_video'

proud-muraoka avatar Jan 21 '22 02:01 proud-muraoka

seems the upload files is not working more, only works pull_upload by the link

mayander30 avatar Jan 21 '22 12:01 mayander30

Did you manage to find any solution?

isaeviv avatar Mar 03 '22 12:03 isaeviv

@isaeviv I am using pull_upload.. I save my file in public tmp files so it have a url https:://yourdomain/yourfile. it works to me.

mayander30 avatar Mar 03 '22 13:03 mayander30

I had the same problem and couldn't figure out what was wrong. I already started a fork of this lib to add some logging and find out what was happening.

Then I generated a new token with more rights (not only the upload one but most of the others too) and now it seems to work!

Schermafbeelding 2023-08-14 om 16 17 55

martin16877 avatar Aug 14 '23 14:08 martin16877