• Skip to content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

Main navigation

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty

Coconut Jobs – error “api_version_not_valid”

[Solved]

Foliovision › Forums › FV Player › Bug Reports › Coconut Jobs – error “api_version_not_valid”

  • Merle L. 4 years ago

    I installed the FV Player Coconut plugin yesterday and created a new Coconut.co account. My account says I am using “API Version: 2021-001” which I believe is their APIv2.

    I ran a job yesterday and it worked perfectly.

    Today I tried to run another job, several times, and keep getting a status of:
    ——–
    Array
    (
    [message] => You must use the Coconut API v2
    [error_code] => api_version_not_valid
    [status] => error
    )
    ——–

    It could just be broken at their end and it might be a coincidence that on their github they released a new version of coconutphp (v3.0.0) less than 24 hours ago. The new version is the first APIv2 compatible version. Or maybe they prematurely deprecated v1 on their end.

    I could submit jobs manually from their web interface, which uses v2, but I’ve grown attached to the plugin after using it just once.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Martin 4 years ago

    Hello Merle,

    this is what I get on https://app.coconut.co/settings/api:

    API Version: 2019-06-13

    You don’t use the latest version of our API!
    Upgrading to the latest version cannot be undone, so read the changelogs first to see if your existing code won’t break.

    [ I understand, upgrade me to 2021-001 ]

    I read the changelog here and the changes are substantial: https://docs.coconut.co/#changelogs

    Please check if you can downgrade to the previous API version if you ask support about it. It will take us 1-2 days to upgrade the plugin to the new API.

    Thanks,
    Martin

    Merle L. 4 years ago

    Hi Martin,

    I can wait for the upgrade.

    Thanks,
    Merle.

    Martin 4 years ago

    Hello Merle,

    unfortunately we run into many little obstacles when working on the new Coconut.co API integration which slowed us down. I’m asking Coconut support about certain things which are not clear in their documentation and we were not able to figure it out even after giving it a couple of tries.

    Thanks,
    Martin

    Martin 4 years ago

    Hello Merle,

    we have prepared the fix for the next FV Player Coconut release.

    It would be great if you could reinstall FV Player Coconut from a fresh ZIP file which you obtain from https://foliovision.com/my-licenses to help us with the testing.

    To do that you will have to first deactivate and delete the current FV Player Coconut plugin you are using. WordPress will warn you that you might loose settings and data, but it’s not the case with our plugin, no settings now videos will be lost. Or you can just replace the plugin files via FTP.

    If you plan to use encrypted HLS with it, then also reinstall FV Player Pro by deactivating and deleting the FV Player Pro plugin you are using and then hit “Install Pro extension” at the top of the wp-admin -> Settings -> FV Player screen.

    You will also have to switch to Beta: https://foliovision.com/player/basic-setup/switching-fv-player-pro-to-beta

    Only then it you will be able to encrypt new videos through Coconut.

    Thanks,
    Martin

    Merle L. 4 years ago

    Hi Martin,

    I downloaded the new coconut plugin from my-licenses but it appears to be giving out the old version still, at least from my account.

    fv-player-coconut.php:

    /*
    Plugin Name: FV Player Coconut
    Plugin URI: http://foliovision.com/
    Description: Coconut.co Video Encoding
    Version: 7.4.27.727
    Author: Foliovision
    Author URI: http://foliovision.com/
    */

    vendor\opencoconut\coconut\src\Coconut.php:

    // ...
      const USER_AGENT = "Coconut/2.6.0 (PHP)";
    // ...
        curl_setopt($ch, CURLOPT_URL, $coconut_url . "/v1/job");
    Martin 4 years ago

    Hello Merle,

    sorry about that, it will give you the new version now.

    Thanks,
    Martin

    Merle L. 4 years ago

    Hi Martin,

    Awesome! I tried a couple of videos including with HLC encryption and they worked.

    Thanks for all the effort,
    Merle

    Jörn 4 years ago

    Hi Martin,

    I am having the same issue. The Coconut-Plugin I can download from my account is the old version still and gives me the same API-version error. Could you update the version in my account as well please?

    Thanks,

    Jörn

    Mária Stašová 4 years ago
    Avatar photo

    Hello Jörn,

    thank you for reaching out to us!

    Yes, Coconut has rolled out a new API version recently. The fix for it is already present in the plugin.

    Please, try reinstalling FV Player Coconut from a fresh ZIP from https://foliovision.com/my-licenses

    To do that you will have to first deactivate and delete the current FV Player Coconut plugin you are using. WordPress will warn you that you might loose settings and data, but it’s not the case with our plugin, no settings now videos will be lost. Or you can just replace the plugin files via FTP.

    Let us know, if it helped.

    Thanks,
    Maria

    Jörn 4 years ago

    Dear Maria,

    thank you for your reply.

    As I had mentioned, the version I can download from my-licenses is old (7.4.27.727). It is the sameversion currently running on my site, giving me the error message.

    Apparently, you need to put the new version into my account, as you did for Merle?

    Thanks again,

    Jörn

    Martin 4 years ago

    Hello Jörn,

    the version of the FV Player Coconut plugin has not yet been increased, I’m sorry that it caused the confusion.

    Please let us know if you did already reinstall the plugin and if you still get “You must use the Coconut API v2”. Also, what version you get on https://app.coconut.co/api ?

    Thanks,
    Martin

Viewing 11 replies - 1 through 11 (of 11 total)
Reply To: Coconut Jobs – error “api_version_not_valid”



Please Sign in or Register to upload files.

Related Posts

  1. Adding multiple Coconut jobs for uploaded videos

    Adding multiple Coconut jobs for uploaded videos

  2. Coconut Encoding without DigitalOcean

    Coconut Encoding without DigitalOcean

  3. Coconut Extra?

    Coconut Extra?

Primary Sidebar

Sign in Register
FV Player Docs Post New Topic

Welcome

to Foliovision support forums! We'll be happy to provide free support to resolve all the reported bugs. You always can start by specifying your OS and browser and steps to reproduce the bug.

If you need help with the installation on your site, please submit a request for a Pro Support Incident. We'll have you up and running in no time, with detailed instructions on how to resolve your issue yourself in the future.

Facing a hard to solve WordPress problem? On a tight deadline?

Let us take care of it for you
right now.

Pro Support Buy FV Player

Footer

Our Plugins

  • FV WordPress Flowplayer
  • FV Thoughtful Comments
  • FV Simpler SEO
  • FV Antispam
  • FV Gravatar Cache
  • FV Testimonials

Free Tools

  • Pandoc Online
  • Article spinner
  • WordPress Password Finder
  • Delete LinkedIn Account
  • Responsive Design Calculator
Foliovision logo
All materials © 2025 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
  • This Site Uses Cookies
  • Privacy Policy
  • Terms of Service
  • Site Map
  • Contact
  • Tel. ‭+421 2/5292 0086‬

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!