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

Not getting video_id after successfully upload video #188

Open
mehuls1013 opened this issue May 3, 2016 · 5 comments
Open

Not getting video_id after successfully upload video #188

mehuls1013 opened this issue May 3, 2016 · 5 comments

Comments

@mehuls1013
Copy link

I have follow the steps to upload video and get success result but the last step which should give output as upload video's video_id in location header not happening.

Request is:
https://api.vimeo.com/users/50720263/tickets/968529753fbedbb1a2b5b1791a322472?video_file_id=524748226&upgrade=true&signature=939e960421a3e3b7a46532209962c63b&access_token=c4ab6224e971689e0a79cde46df71eb1

HTTPMethod: DELETE
Request Timeout: 180

I've posted this issue in vimeo forum also but they are not replying.
https://vimeo.zendesk.com/hc/en-us/requests/2989480

Please help me to sort out this issue.
Any help will surely appreciable.

Thanks,
Mehul

@huebnerob
Copy link
Contributor

Hi @mehuls1013,

The easiest way to implement upload to Vimeo from an iOS app is to use VimeoUpload. Since upload is a complex process, we'd recommend you use that well-supported library over standard API requests in this case.

@mehuls1013
Copy link
Author

Hello @huebnerob

Thanks for your reply.

We are success with upload video but the last step which provide VIDEO_ID (complete the upload : https://developer.vimeo.com/api/upload/videos#complete-the-upload) is not working for us. We already mentioned our request above. If any other information you need please let us know.

And we already used the same API which you suggested VimeoUpload. Please help us to sort this out.

Looking forward to your reply.

@mehuls1013
Copy link
Author

Hello @huebnerob

Any update?
Why we not getting video_id?

Please provide your feedback on this.

@Dashron
Copy link

Dashron commented May 4, 2016

Could you provide the full request/response pair for the initial POST to /me/videos, and the final DELETE call?

@mehuls1013
Copy link
Author

Hello @Dashron

As earlier we've said that we are using VimeoUpload, but not found video_id after successful video uploading.
Let us share last 2 Steps.

Step 3:
URL: https://1511928695.cloud.vimeo.com/upload?ticket_id=d809c81bd3f87045850ae4c2f20c12c8_47048769&video_file_id=525970935&signature=3bb19fccf9e7268addccc788bfb01b3b&v6=1
Headers: ["Content-Range": "bytes /", "Content-Length": "1671932"]
HttpMethod: PUT
Timeout: 300

Response:
{ URL: https://1511928695.cloud.vimeo.com/upload?ticket_id=d809c81bd3f87045850ae4c2f20c12c8_47048769&video_file_id=525970935&signature=3bb19fccf9e7268addccc788bfb01b3b&v6=1 } { status code: 308, headers {
"Access-Control-Allow-Headers" = "Content-Type, Content-Range, X-Requested-With";
"Access-Control-Allow-Methods" = "POST, PUT, GET, OPTIONS";
"Access-Control-Allow-Origin" = "";
"Access-Control-Expose-Headers" = Range;
Connection = close;
"Content-Length" = 0;
"Content-Type" = "text/plain";
Date = "Thu, 05 May 2016 06:21:37 GMT";
Range = "bytes=0-0";
Server = "Vimeo/1.0";
"Timing-Allow-Origin" = "
";
"X-Backend-Server" = kopiluwak;
"X-Requested-With" = XMLHttpRequest;
} }

Here, we get 308 status code that means file exist on your server.

Step 4:
URL: https://api.vimeo.com/users/50720263/tickets/d809c81bd3f87045850ae4c2f20c12c8?video_file_id=525970935&upgrade=true&signature=19468c4f35fa75e9faf20b5e3b8fc83d
HttpMethod: DELETE
Timeout: 180

Response:
Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)" UserInfo=0x7fbe4c8bc060 {NSErrorFailingURLStringKey=https://api.vimeo.com/users/50720263/tickets/d809c81bd3f87045850ae4c2f20c12c8?video_file_id=525970935&upgrade=true&signature=19468c4f35fa75e9faf20b5e3b8fc83d, NSUnderlyingError=0x7fbe4a655c80 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error -1012.)", NSErrorFailingURLKey=https://api.vimeo.com/users/50720263/tickets/d809c81bd3f87045850ae4c2f20c12c8?video_file_id=525970935&upgrade=true&signature=19468c4f35fa75e9faf20b5e3b8fc83d}

Here, in last step we need VIDEO_ID in location header in HTTPResponse as per your documentation. but we are not getting it instead it gifting us ERRORs each time.

We are using ACCEESS_TOKEN = "2d2bc84a7f111b6bee6b24d26c6421e5".

Please review for this and let us know if there is any luck to solve out this issue.

Regards,

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

3 participants