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

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

问题描述

我的 google 控制台中有 3 个服务器密钥,用于不同的服务器.

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

一开始似乎只有一个键有效,那就是我的本地 IP 地址.

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

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

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."
 }
}

这对我来说真的没有意义,因为提供了密钥,并且密钥肯定设置了适当的 IP 地址.

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

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

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

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

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.

所以我仍然需要修复我的生产服务器,但我发现这个服务器没有 IPv6 地址.同一个工具会为我返回 IPv4 地址,而且我在控制面板中也没有设置 IPv6 地址.

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.

我正在尝试使用 google 的自定义搜索 API.

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

推荐答案

显然我在服务器上以错误的方式使用了 cURL.现在它就像一个魅力!

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

(必须在 URL 周围添加撇号)

(Had to add apostrophes around the URL)

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

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