【发布时间】:2018-01-09 21:35:30
【问题描述】:
在节点 js 谷歌云存储中使用 REST 引用我在邮递员中收到此错误,我收到以下错误。 网址: https://datastore.googleapis.com/v1/projects/{projectId}:allocateIds 请求正文:
{
"keys": [
{
"partitionId": {
"namespaceId": "default",
"projectId": "superb-watch-172816"
},
"path": [
{
"kind": "User50records"
}
]
}
]}
我收到了这个错误:
{
"error": {
"code": 401,
"message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
"status": "UNAUTHENTICATED"
}
}
【问题讨论】:
标签: node.js google-cloud-datastore google-cloud-storage google-api-nodejs-client gcp