dailyLimitExceededUnreg错误,请求中设置键 [英] dailyLimitExceededUnreg error with key set in request

查看:761
本文介绍了dailyLimitExceededUnreg错误,请求中设置键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在不同的服务器的Google控制台中有3个服务器密钥。



开始只有一个密钥似乎有效,这是我的本地IP地址。 / p>

在临时服务器上使用cURL调试后,我发现响应是:

  {
error:{
errors:[
{
domain:usageLimits,
reason:dailyLimitExceededUnreg ,
message:每日限制未经身份验证的使用超过,继续使用需要注册。,
extendedHelp:https://code.google.com/apis/console
}
],
code:403,
message:未经认证的使用超过的每日限制。继续使用需要注册。
}
}

这对我来说没有意义,因为提供了密钥,并且密钥是用相应的IP地址明确设置的。



所以我开始了调试过程,对于临时服务器,我尝试了一些cURL IP发现工具。



突然icanhazip.com给我的IPv6地址到我的服务器,在添加到允许的IP列表后突然工作。如果你问我一些奇怪的行为。



所以我仍然有我的生产服务器来修复,我发现这一个没有IPv6地址。同样的工具为我返回了IPv4地址,在我的控制面板中,我也没有设置IPv6地址。



因为google没有大的支持平台,我希望有人在这里遇到同样的问题。



我想使用google的自定义搜索API。

解决方案

显然我在我的服务器上以错误的方式使用cURL。



(无法在网址周围添加撇号)


I have 3 server keys in my google console for different servers.

In the beginning only one key seemed to work, and that was my local IP address.

After debugging with cURL on the staging server I found that the response was:

{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "dailyLimitExceededUnreg",
    "message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.",
    "extendedHelp": "https://code.google.com/apis/console"
   }
  ],
  "code": 403,
  "message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."
 }
}

This didn't really make sense to me, because the key was provided and the key was definitely set with the appropriate IP address.

So I started the debugging process and for the staging server I tried some cURL IP discovery tools.

Suddenly icanhazip.com gave me the IPv6 address to my server, after adding this to the Allowed IP list it suddenly worked. Some weird behavior if you ask me.

So I still had my Production server to fix, and I found out that this one doesn't have an IPv6 address. The same tool returns the IPv4 address for me and in my control panel I also didn't set up an IPv6 address.

As google doesn't have a big support platform, I'm hoping someone here has ran into the same problem.

I'm trying to use google's custom search API.

解决方案

Apparently I was using cURL in the wrong way on my server. It now works like a charm!

(Had to add apostrophes around the URL)

这篇关于dailyLimitExceededUnreg错误,请求中设置键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆