bo-oz / vimeo_me2

Vimeo API v3 wrapper for Ruby
MIT License
54 stars 60 forks source link

Error to upload files to vimeo #43

Open mayander30 opened 2 years ago

mayander30 commented 2 years ago

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.

proud-muraoka commented 2 years ago

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'
mayander30 commented 2 years ago

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

isaeviv commented 2 years ago

Did you manage to find any solution?

mayander30 commented 2 years ago

@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.

martin16877 commented 1 year ago

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