从今天早上到昨天晚上之间的某个时间,gapi.client.load('tagmanager',v2')开始引发错误。我有使用相同的发现调用加载驱动器,分析,身份验证的代码。当GTM代码停止工作时,这些命令仍然有效。
通过对gapi.client.load的调用形成的对tagmanager v2的调用不再起作用: https://content.googleapis.com/discovery/v1/apis/tagmanager/v2/rest?fields=kind%2Cname%2Cversion%2CrootUrl%2CservicePath%2Cresources%2Cparameters%2Cmethods%2CbatchPath%2Cid&pp=0
如果我删除参数,它将起作用: https://content.googleapis.com/discovery/v1/apis/tagmanager/v2/rest
这是返回的错误:
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"field": "kind,name,version,rootUrl,servicePath,resources,parameters,methods,batchPath,id",
"description": "Error expanding 'fields' parameter. Cannot find matching fields for path 'kind'."
}
]
}
]
}
}