【问题标题】:google cloud messaging for chrome receive error code 403 forbidden用于 chrome 的谷歌云消息接收错误代码 403 被禁止
【发布时间】:2013-04-16 07:14:47
【问题描述】:

我正在开发一个 Chrome 扩展程序,其中包含用于 chrome 的谷歌云消息传递,以将消息推送到我的 Chrome 扩展程序的实例。

当尝试向 GCM 服务器推送消息时,我收到如下不成功的响应;

> POST /gcm_for_chrome/v1/messages HTTP/1.1
> User-Agent: curl/7.26.0
> Host: www.googleapis.com
> Accept: */*
> Content-Type: application/json
> Content-Length: 133
>
* upload completely sent off: 133 out of 133 bytes
< HTTP/1.1 403 Forbidden
< Content-Type: application/json; charset=UTF-8
< Date: Mon, 15 Apr 2013 19:49:24 GMT
< Expires: Mon, 15 Apr 2013 19:49:24 GMT
< Cache-Control: private, max-age=0
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 1; mode=block
< Server: GSE
< Transfer-Encoding: chunked
<
{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "accessNotConfigured",
    "message": "Access Not Configured"
   }
  ],
  "code": 403,
  "message": "Access Not Configured"
 }
}

有人知道如何解决这个问题吗?

提前谢谢你。 Burin H.

【问题讨论】:

标签: google-chrome google-chrome-extension messaging google-cloud-messaging


【解决方案1】:

此问题的一个潜在原因是未将 API 设置为启用。

为确保您的 API 已启用,您可以登录 https://code.google.com/apis/console,单击左侧导航栏中的“服务”并检查 Google Cloud Messaging for Chrome 的服务状态。如果您发现它被设置为“关闭”,则说明问题所在,您可以通过将其设置为“打开”来修复它。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-05-25
    • 1970-01-01
    • 2019-05-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多