【发布时间】: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.
【问题讨论】:
-
它显示“未配置访问”。你修好了吗?不要在此处发布,但您有客户 ID 吗? developer.chrome.com/apps/cloudMessaging.html#clientid你没有说太多关于你是如何构建你的请求的,所以我们很难判断它有什么问题。
标签: google-chrome google-chrome-extension messaging google-cloud-messaging