question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GET /videos endpoint does not work for links

See original GitHub issue

I’m trying to get the video metadata given a vimeo video URL, and found from this StackOverflow answer that I should use the https://api.vimeo.com/videos endpoint with the links query parameter.

When I try to fire this query via this library with:

const links = 'https://vimeo.com/35055590'

client.request({
  method: 'GET',
  path: '/videos',
  query: {
    query: undefined,
    links: links,
    sort: 'relevant',
    per_page: 50,
    page: 1,
    fields: 'name,pictures.sizes,user.name,link'
  }
}, (err, body, code, headers) => {
  if (err) {
    console.error(err)
  }
})

I get an error reporting:

Error: {"error":"Something strange occurred. Please try again.","link":null,"developer_message":"The query param provided is not supported for the request.","error_code":2101}
    at IncomingMessage.<anonymous> (/home/guru/workspace/videoshare-development/node_modules/vimeo/lib/vimeo.js:164:19)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
guruprascommented, May 7, 2018

Ah okay great. I’ll update my requests to remove sort when trying to use links. Thanks a lot for looking into this!

0reactions
erunioncommented, May 7, 2018

Hey @gurupras, I looked into this this morning and there isn’t a bug here. What’s going on is that we don’t allow sorting on batch requests to /videos.

Remove sort: 'relevant', from your request and it’ll succeed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

get_video_info YouTube endpoint suddenly returning 404 not ...
EDIT: I found this can work. I don't why. But it really works.
Read more >
Troubleshoot Azure Private Endpoint connectivity problems
Step-by-step guidance to diagnose private endpoint connectivity.
Read more >
YouTube Data API - Errors | Google Developers
This error indicates that the user has an unlinked Google Account, which means that the user has a Google Account but does not...
Read more >
Publish Content - Pages - Meta for Developers - Facebook
Live Videos - If a Page post contains a video that has expired, such as a live broadcast, you can get some post...
Read more >
Video and Audio APIs - Learn web development | MDN
Here is a <a href="rabbit320.mp4">link to the video</a> instead. </p> </video> ... If you don't specify this, you get no playback controls: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found