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 to upload files to vimeo #43

Open
mayander30 opened this issue Jan 14, 2022 · 5 comments
Open

Error to upload files to vimeo #43

mayander30 opened this issue Jan 14, 2022 · 5 comments

Comments

@mayander30
Copy link

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
Copy link

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
Copy link
Author

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

@isaeviv
Copy link

isaeviv commented Mar 3, 2022

Did you manage to find any solution?

@mayander30
Copy link
Author

@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
Copy link

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

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

4 participants