• Resolved elr3000

    (@elr3000)


    Over the last couple of weeks we have encountered an issue with the number of API calls made by the plugin.

    Yesterday during a scheduled event on our site the issue went to it’s extreme with this site reaching it’s limit of API calls in minutes, resulting in all videos being taken off the site and displaying the plugins API error message.

    We had to create new auth keys to deal with it while simultaneously troubleshooting the problem and testing out possible solutions.

    It seemed that each visitor was resulting in about 30 API calls and at it’s peak it meant that after about 20 minutes the API reached it’s daily limit.

    We have had past events with many many more visitors than yesterday and never had this issue before, as far as we know.

    Obviously we are a little concerned and would like to better understand the situation so we’re better able to solve it the next time it happens. Can we please ask…

    1. Have there been any changes to the plugin that would result in a very large increase in the number of API calls?

    2. Would it be possible to provide the plugin with multiple API auth keys so that it either it uses one until it no longer works, then can use the next one, or uses a random auth key. So that if we entered say 10 keys, that could mean that our potential limit could increase tenfold?

    3. Is it possible to edit the error message that is displayed when the limit is reached so that the details of how to resolve it are not displayed to all visitors? We consider this a security issue as it exposes the plugin details to the world, which isn’t best practice in a security sense.

    Thanks for your help.

    • This topic was modified 5 years, 2 months ago by elr3000.
Viewing 12 replies - 1 through 12 (of 12 total)
  • same issue with me

    Plugin Author embedplus

    (@embedplus)

    1. Have there been any changes to the plugin that would result in a very large increase in the number of API calls?
    No; however YouTube/Google themselves have been rolling out drastically reduced default quotas across the board for all users (for example, there was a point that 1 million units was the standard–those days are unfortunately over). Any new keys these days only have a few thousand units in their quota these days, but we are working on a more quota-friendly version of the plugin, particularly for live streams. Was your scheduled event a live stream?

    2. Would it be possible to provide the plugin with multiple API auth keys so that it either it uses one until it no longer works, then can use the next one, or uses a random auth key. So that if we entered say 10 keys, that could mean that our potential limit could increase tenfold?
    That would take a significant code refactor, but much more importantly, there are some YouTube/Google TOS issues about using multiple keys per site particularly across multiple API projects (which is not allowed).

    3. Is it possible to edit the error message that is displayed when the limit is reached so that the details of how to resolve it are not displayed to all visitors? We consider this a security issue as it exposes the plugin details to the world, which isn’t best practice in a security sense.
    We hear you; although we believe you as an admin, should indeed be made aware of what error/solution is occurring with the API. A happy medium we would implement in the future is to only display the message if logged in as an admin.

    @embedplus

    On your YouTube API Key settings you said:

    “Some features (such as galleries, and some wizard features) now require you to create a free YouTube API Server key from Google.”

    When you say “some wizard features”, can you please be more specific and list which features are using YouTube API Key?

    Are there any other YouTube API Key being used that we are not aware of?

    I am not using galleries, nor live streaming, nor I am using wizard features either, Just making sure I am not using any YouTube API Key. Embedding is done manually via short code.

    On the pro settings I am using “Featured Thumbnail Images”, not sure if this is using YouTube API Key.

    Regards,

    Plugin Author embedplus

    (@embedplus)

    @lechon Did you create an API key? Finally, if you used a feature that required one and you didn’t create one, then you would know via an error. So it sounds like you aren’t using the key-dependent features.

    Hi @embedplus

    I did not create an API key

    Thread Starter elr3000

    (@elr3000)

    1. Have there been any changes to the plugin that would result in a very large increase in the number of API calls?
    No; however YouTube/Google themselves have been rolling out drastically reduced default quotas across the board for all users (for example, there was a point that 1 million units was the standard–those days are unfortunately over). Any new keys these days only have a few thousand units in their quota these days, but we are working on a more quota-friendly version of the plugin, particularly for live streams. Was your scheduled event a live stream?

    Thanks for your reply. Yes it was a live stream, but as the live stream wasn’t recurring it was embedded as a single video, not using the live stream option in the wizard.

    Plugin Author embedplus

    (@embedplus)

    The release we hope to push this weekend might help this issue.

    Thread Starter elr3000

    (@elr3000)

    Excellent news. Thank you for the update. Keep up the great work!

    Plugin Author embedplus

    (@embedplus)

    With the recent release, you should now have an improved livestream (i.e. quota friendly) embedding experience and the ability to limit the error shown to visitors.

    Thread Starter elr3000

    (@elr3000)

    @embedplus

    You sir are truly a legend.

    • This reply was modified 5 years, 2 months ago by elr3000.
    Thread Starter elr3000

    (@elr3000)

    I’ve looked through the settings and I can’t seem to find the option to limit the error shown to visitors.

    Plugin Author embedplus

    (@embedplus)

    Oh, there’s no actual option to look for. The full error is only shown to a logged in administrator.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘NEW API ISSUE’ is closed to new replies.