• Resolved inktvusa

    (@inktv)


    Checking your key ...
    Something went wrong, WP YouTube Lyte might not have been able to retrieve information from the YouTube API, got error: 1
    Checking your key ...
    API key not OK, your key seems to be valid, but restricted to an IP-address which is not your server's.Try changing the allowed IP for your API key to include this one: xxx.xxx.xxx.xxx

    What’s the deal with this error all of a sudden?

    • This topic was modified 9 years, 3 months ago by inktvusa.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Frank Goossens

    (@futtta)

    the first one is if Lyte doesn’t succeed in getting a response from YT, but that seems to be fixed when you get the second error which is a problem with your key configuration in youtube. try removing any ip-restriction on the key or simply create a new one.

    yt api key’s can be a pain, we’ve all been there I’m afraid ..

    frank

    Thread Starter inktvusa

    (@inktv)

    Hi Frank,

    All API keys that I have are working for every plugin that requires it. However, with this plugin, I am getting “Client errors (4xx)” in my API Dashboard. I tested my key using this URL :

    https://www.googleapis.com/youtube/v3/videos?part=snippet&id=<vid-id>&key=<my-key>

    This is the error I received in the JSON response :

    {
    “error”: {
    “errors”: [
    {
    “domain”: “usageLimits”,
    “reason”: “ipRefererBlocked”,
    “message”: “The request did not specify any referer. Please ensure that the client is sending referer or use the API Console to remove the referer restrictions.”,
    “extendedHelp”: “https://console.developers.google.com/apis/credentials?project=462388451704&#8221;
    }
    ],
    “code”: 403,
    “message”: “The request did not specify any referer. Please ensure that the client is sending referer or use the API Console to remove the referer restrictions.”
    }
    }

    Can you please update your plugin to specify the referrer which could be the IP or domain name, please?

    Thank you.

    Thread Starter inktvusa

    (@inktv)

    Hi Frank,

    All API keys that I have are working for every plugin that requires it. However, with this plugin, I am getting “Client errors (4xx)” in my API Dashboard. I tested my key using this URL :

    https://www.googleapis.com/youtube/v3/videos?part=snippet&id=<vid-id>&key=<my-key>

    This is the error I received in the JSON response :

    {
    “error”: {
    “errors”: [
    {
    “domain”: “usageLimits”,
    “reason”: “ipRefererBlocked”,
    “message”: “The request did not specify any referer. Please ensure that the client is sending referer or use the API Console to remove the referer restrictions.”,
    “extendedHelp”: “https://console.developers.google.com/apis/credentials?project=462388451704&#8221;
    }
    ],
    “code”: 403,
    “message”: “The request did not specify any referer. Please ensure that the client is sending referer or use the API Console to remove the referer restrictions.”
    }
    }

    Can you please update your plugin to specify the referrer which could be the IP or domain name, please?

    Thank you!

    Thread Starter inktvusa

    (@inktv)

    Frank,

    In addition, I tried a key without a referrer restriction and it worked properly. It would still be great if you could update the plugin to include the referrer.

    Thank you for such a great plugin. 🙂

    Plugin Author Frank Goossens

    (@futtta)

    In addition, I tried a key without a referrer restriction and it worked properly.

    that’s indeed the best approach.

    It would still be great if you could update the plugin to include the referrer.

    I’ll put in on my list of possible improvements, thanks! 🙂

    have a nice weekend,
    frank

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘YouTube API, got error: 1’ is closed to new replies.