Foliovision › Forums › FV Player › Troubleshooting › FV Player Vimeo API Rate Limits
-
Hello,
I’m using FV Player Pro to show videos on CloudWays hosting and I keep getting the notice in WP Admin: “FV Player Pro: Your Vimeo access token appears to be invalid, please fix it to ensure your videos keep working: Too many API requests. Wait an minute or so, then try again.”
The only thing I can think of when this occurs is when I clear my Breeze cache (caching plugin for Cloudways + Varnish). I’ll clear this occasionally when I make CSS changes or something on the site…Is there a reason it’s hitting a rate limit every time I clear cache? I don’t want the Vimeo API to ban my site IP…
-
-
Hello Philip,
how many Vimeo videos do you published on your website?
How does the shortcode of a typical Vimeo video look like? Is it just something like [fvplayer src="https://vimeo.com/310463116" splash="https://i.vimeocdn.com/video/751099985_1280x721.jpg?r=pad" caption="DIGITAL CONTENT"] (no splash argument present)?
Where are your [fvplayer] shortcodes typically inserted? Is it the post content or are you using some special field or a page builder?
Thanks,
MartinCurrently we have 163 videos but will be adding more. We are converting slowly from DZS…There will be about 1000 in total. (PS Unrelated to this post, there’s not a quick way to convert all of those is there?)
There is no page builder, they are just input with a shortcode like so [fvplayer id="20"]
and the video source is https://vimeo.com/309623497 for exampleHello Philip,
please provide the export for the FV Player ID 20. The export link can be found in each player row on wp-admin -> FV Player. I wonder if the splash screen is there. If it’s not there, then it will try to obtain it automatically and cache it, but perhaps that routing is failing on your website.
we haven’t worked with DZS Video Gallery plugin before and it’s the first time I read about it. Do you have a programming team which could use some of our tips for the conversion?
Thanks,
MartinExport link is below. I am not setting splash screen for any videos, was hoping it would do that automatically since there are so many. Would it fix the problem if I just set a default splash image for all videos? I’d still prefer for each video to grab one automatically if possible.
I am the developer on the project if you could pass some tips my way I’d appreciate it!
Sorry here is export link:
{"ab":"","ad":"","ad_height":"","ad_width":"","ad_skip":"","align":"","autoplay":"","controlbar":"","copy_text":"","embed":"","end_actions":"","end_action_value":"","height":"","hflip":"","lightbox":"","lightbox_caption":"","lightbox_height":"","lightbox_width":"","player_name":"Clay Smith and Paul Eaves ","player_slug":"","playlist":"","playlist_advance":"","qsel":"","share":"","share_title":"","share_url":"","speed":"","sticky":"","video_ads":"","video_ads_post":"","width":"","meta":[{"meta_key":"post_id","meta_value":"23554"}],"videos":[{"caption":"","end":"","mobile":"","rtmp":"","rtmp_path":"","splash":"","splash_text":"","src":"https:\/\/vimeo.com\/309623497","src1":"","src2":"","start":"","meta":[{"meta_key":"last_video_meta_check","meta_value":"1546794676"},{"meta_key":"auto_caption","meta_value":"1"},{"meta_key":"auto_splash","meta_value":"1"}]}]}
Hello Philip,
please enable Settings -> FV Player Pro -> Integrations/Compatibility -> “Scan video length” and all the missing video durations and splash screens (applies to Vimeo and YouTube) will appear in 5 minutes or so. It uses WP cron, so the actual time might depend on how many pageviews you get. If it fails due to Vimeo API limits it will try again in an hour.
The FV Player database model is pretty new. We are working on documentation to show you how to import videos to it etc. and also improving some of the function calls. But here is the basic idea:
$player = array( 'videos' => array(), 'player_name' => 'Name' ); while( $dzs_items_which_you_load_somehow AS $dzs_item ) { $video = array( 'caption' => $dzs_item['title'], // can remain empty for Vimeo or YouTube 'src' = $dzs_item['source'], 'splash' = $dzs_item['image'], // can remain empty for Vimeo or YouTube ); $player['videos'][] = $video; } global $FV_Player_Db; $player_id = $FV_Player_Db->import_player_data(false, false, $player );
I recommend you to try this on a staging website first or at least backup your database.
Thanks,
MartinHello Philip,
please check if the Vimeo API warning currently appears and if not, then please open https://YOUR-SITE.com/wp-admin/options-general.php?page=fvplayer&fv_flowplayer_checker
That should add in the missing splash screens and durations. You should not notice that the Vimeo videos on wp-admin -> FV Player screen which didn’t had the thumbnails showing up before will have the thumbnails available.
Let us know, I have some more troubleshooting tips. We really need to improve this in FV Player.
Thanks,
MartinOk thanks. So I logged into WP and did not see the API limit message in the dashboard. Then I went to the URL you suggested, it just took me to the FV Player settings page, no special message was displayed. I waited about a minute or two and then went to the FV Player video page to see if thumbnails were there but they were not. Also when I went to this page to see the list of videos then the API limit message shows up.
Hello Philip,
the way it should work is that it should process any videos for which the duration is not set. You provided an export of one of your videos before and in that one there was no duration present. It might be good to check that one again, perhaps the duration is present now?
Please share your Vimeo Access token with us. We won’t publish it here and you can always reset it. Perhaps there is some issue with it with we are failing to detect. That way I could try to use it for a bunch of requests to see if it gives me the information I need.
Also, there is possibility that your Vimeo videos are private and they belong to some other account than the API key you are using. That could also explain why this fails.
Thanks,
Martin