websemantics / vimeo-upload

Upload videos to your Vimeo account and update their metadata directly from a browser or a Node.js app
http://websemantics.github.io/vimeo-upload/
Apache License 2.0
114 stars 80 forks source link

Error: Something strange occurred. Please try again. #31

Open wdpdev opened 6 years ago

wdpdev commented 6 years ago

{ "error": "Something strange occurred. Please try again.", "link": null, "developer_message": "To access upload features for API version 3.4 when your app defaults to a different API version, include the Accept header with your request, and set its value to 3.4. For more details, see our versioning documentation at https://developer.vimeo.com/api/common-formats#versioning.", "error_code": 3116 `}```

Applicafroguy commented 6 years ago

i have the same issue

tommypenner commented 6 years ago

@websemantics I believe this is happening because the library does not specify a version accept header. If no version accept header is specified, the Vimeo API will use an application's individual default version -- specified on the app's management page at https://developer.vimeo.com/apps.

As a quick and dirty fix, you should specify application/vnd.vimeo.*+json;version=3.2 in the request header to use the (now-deprecated) resumable/streaming put upload method.

A long-term fix would be to specify version=3.4 and update the library to use the open-source tus upload method.

More information here: https://medium.com/vimeo-engineering-blog/introducing-the-new-vimeo-upload-api-3e208a2da760 https://developer.vimeo.com/api/upload/videos#resumable-guide https://tus.io/protocols/resumable-upload.html

desmartDev commented 6 years ago

In file vimeo-uploader.js me.prototype.upload = function() { var xhr = new XMLHttpRequest() xhr.open(this.httpMethod, this.url, true) xhr.setRequestHeader('Authorization', 'Bearer ' + this.token) xhr.setRequestHeader('Content-Type', 'application/json')

    xhr.setRequestHeader('Accept', 'application/vnd.vimeo.*+json;version=3.2') <-- Add line
vycoder commented 5 years ago

I stumbled upon this problem and found out something related.

If you want to upgrade to the latest 3.4 API, there's a current upload file feature on PR here: chore: add upload of a blob file.

devsideal commented 10 months ago

When creating live event, I'm getting this error:

https://developer.vimeo.com/api/reference/live#create_live_event

{
    "error": "Something strange occurred. Please try again.",
    "link": null,
    "developer_message": "The specified resource doesn't exist.",
    "error_code": 5000
}

Any one have any idea about this?