Plyr: https://vimeo.com/api/v2/video/{id}.json not found

Created on 4 Sep 2018  Â·  22Comments  Â·  Source: sampotts/plyr

Expected behaviour

No error logged in the console.

Actual behaviour

An error is displayed in the console with a response of "{id} not found."

Steps to reproduce

Follow the Vimeo steps and embed a video.

Environment

  • Browser: Chrome
  • Version: 68
  • Operating System: MacOS
  • Version: 10.13.6

Most helpful comment

I’m dreadfully sorry I’m not meeting your SLAs with this free software!

Feel free to open a PR.

All 22 comments

Do you see this on https://plyr.io/#vimeo ? I can't seem to replicate.

Sounds like you're passing in {id} rather than an actual Vimeo ID.

I can't replicate it on the plyr page either, however when I included the library in our own project the library always emits an error:

https://media-evolution.firebaseapp.com/watch?v=34

I am using the following syntax:
<div id="player" data-plyr-provider="vimeo" data-plyr-embed-id="76979871"></div>

@stanvanheumen On the page you linked I'm not getting the error

Got the same issue (also getting it on https://media-evolution.firebaseapp.com/watch?v=34), with the same environment specs.

Does the video load and play? I've had issues where the vimeo video has refused to load accompanied by the same error you're having.

@Joeao I'm still receiving the error.
@gurupras Yes, the video does load and play.

The library seems to request this url: https://vimeo.com/api/v2/video/286759118.json. In can see in the Chrome network tab that the browser is receiving a 404 Not Found error.

The response from the Vimeo API:
286759118 not found.

@stanvanheumen Your request is utilizing Vimeo's deprecated Simple API- https://vimeo.com/api/v2/video/286759118.json

The Simple API can only retrieve metadata for videos public on vimeo.com. Your video at https://vimeo.com/286759118 is not public and cannot be retrieved using the Simple API.

To get metadata on private videos, use the latest version of Vimeo's API: https://developer.vimeo.com/api/start

@danaburger Thanks for your response.

Isn't the library the one making this HTTP call?

Any update on this? This is a library issue.

I'm not really too sure what to do about this. I can't prevent that error in the console and let's be honest, it does no harm other than effect logs if you log to Sentry or similar. It's a 404 at Vimeo's end. We can't use the new API as you'd need to specify an API access token which is a bit of effort for some. I could probably add an option to load the poster image or not (that's what the call is for) if the console message is causing a problem.

Can we get this resolved please? This issue has been open for months.

I’m dreadfully sorry I’m not meeting your SLAs with this free software!

Feel free to open a PR.

Still open?
image

Still open?

Still not read the thread? https://github.com/sampotts/plyr/issues/1181#issuecomment-427282584

Sorry

I'll make a PR later this week

No, I moved to a different player.

On Thu, Aug 13, 2020 at 2:24 AM Jason Walter notifications@github.com
wrote:

@jolic https://github.com/jolic Did you find a fix for this? I spent
hours to narrow the issue I'm having down to this - my private Vimeo video
container displays on my Production site, but asks for a password. It works
on my staging domain though. It's very odd to me.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sampotts/plyr/issues/1181#issuecomment-673105714, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAXZOOMDKFF6TW552YMT73TSAL6QLANCNFSM4FTDKB3A
.

Have the same issue but it doesn't interfere with plyr working in my case. After a bit of testing it seems that the error happens when you set the video to Who can watch: People with the private linkIf you set it to Anyone the error doesn't happen. Hope this is helpful.

@sampotts Thanks for making plyr!

Further info. The problem can be solved by using the oembed endpoint provided by Vimeo instead of the /api endpoint. See: https://developer.vimeo.com/api/oembed/videos

The url would be https://vimeo.com/api/oembed.json?url=https%3A//vimeo.com/[id]

Here [id]is the vimeo video id, for videos that are set to private linking the id has an extra key in the form of: [id]/[key]. If you provide the full id and key you can get the oembed metadata which includes two urls that can be used for the poster image:

  • thumbnail_url
  • thumbnail_url_with_play_button

The second one has a play button overlay

Awaiting to see #1181 merged so I can finally reduce the noise in my error tracking software

This is released in v3.6.3. Again, sorry for the delay. I've been moving house, busy with work, blah blah. Thanks for the PR.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TheZoker picture TheZoker  Â·  4Comments

ahmadshc picture ahmadshc  Â·  4Comments

tomByrer picture tomByrer  Â·  3Comments

michaelmano picture michaelmano  Â·  3Comments

sparkktv picture sparkktv  Â·  4Comments