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

Foliovision

  • 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, 10 months 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 5 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. 5 years ago

    Hi Martin,

    I can wait for the upgrade.

    Thanks,
    Merle.

    Martin 5 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 5 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. 5 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 5 years ago

    Hello Merle,

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

    Thanks,
    Martin

    Merle L. 5 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

Bug Reports

    Categories

    • Business
    • Camera Reviews
    • Case Studies
    • Design
    • FV Player
    • Internet Marketing
    • IT
    • Life
    • SEO
    • Slovak
    • Video of the Week
    • WordPress

    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 © 2026 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‬