bo-oz / vimeo_me2

Vimeo API v3 wrapper for Ruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Upload raising VimeoMe2::RequestFailed exception but the video is uploaded

heitorado opened this issue · comments

Hi!

Recently the upload feature broke in the application I'm working on and after some debugging I discovered that the model on my app that stores the video is not being created (since I make a check for not creating it in case VimeoMe2::RequestFailed is raised) but the video does upload to vimeo when I check on my account via web browser.

The error message that comes from the exception is: "Please add a custom logo to your account."

I would love to help solving this, if anyone could me give clues or pointers on what is going on, I can start working on a PR.

Thanks in advance!

EDIT: While I'm still debugging here, I'll add more info about the problem to see if it helps.
The exception object has the following attributes after the raise:
e.status == "Bad Request"
e.error == 400
e.message == "Please add a custom logo to your account."
e.ratelimit == {"limit"=>"500", "remaining"=>"492", "reset"=>"2020-08-05T19:18:47+00:00"}

Since the error code is 400, I suppose it falls in one of the 'raise' calls on the http_request.rb file in the validate_response! method.
However, the fact that the request is returning code 400 but the video is actually being uploaded is really weird.

Okay, so I decided to investigate the error message further and after some searching I found how to add a custom logo to vimeo.

Uploading a custom logo solved my problem immediately. Apparently this logo is required now for doing uploads.

This is absolutely bizarre and arbitrary (since I could upload my videos about a week ago without this image, and I do not use it anywhere).

Since I do not believe that this problem is related to the gem, feel free to close the issue, and sorry for any inconvenience.

Thank you for your report. I have a same problem too. My plan is Plus that have no option to custom logo settings and I have a error message but file was successfully uploaded for unknown reasons.

As you notices, this might not be problem of this library but vimeo API may have some changes. 3.4 is most recent? Anyway, official Node js library works for my account well even if I'm Plus.

@heitorado you saved me - I was lost

Have requested they change it to fail to a default logo: https://twitter.com/donkeyscience/status/1300926315411812353