如何解决Google Picker API请求中缺少的表单数据



我的一些用户无法在我的web应用程序中使用Google Picker。在这一点上,我已经尝试了很多不同的东西。什么都没用。所以,我想深入研究一个基本的区别。

请求成功的用户的请求采用以下形式:

Query String Parameters
hl: en_US
xtoken: <redacted>
origin: http://localhost:3000
oauth_token: <redacted>
hostId: localhost

Form Data
start: 0
numResults: 50
sort: 3
desc: true
cursor:
mine: 2
service: docs
type: EVERYTHING
options: {"notInFolder":true,"mimeTypes":"application/msword,application/vnd.google-apps.document,application/vnd.google-apps.kix,application/vnd.ms-word,application/vnd.ms-word.document.macroEnabled.12,application/vnd.ms-word.document.macroenabled.12,application/vnd.ms-word.template.macroEnabled.12,application/vnd.ms-word.template.macroenabled.12,application/vnd.oasis.opendocument.text,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template,text/plain,application/vnd.google-apps.folder","ff":true}
token: <redacted>
version: 4
app: 2
subapp: 5
clientUser: <redacted>

请求失败的用户有采用此表单的请求(无表单数据(:


Query string parameters
protocol: gadgets
origin: http://localhost:3000
multiselectEnabled: true
oauth_token: <redacted>
hostId: localhost
parent: http://localhost:3000/favicon.ico
nav: (("documents",null,{"includeFolders":true}),("upload",null,{"query":"docs"}))
rpcService: <redacted>
rpctoken: <redacted>
thirdParty: true
ppli: 2

此请求后选择器的缩小版本产生的Uncaught Error: xb at m=opnc:1067错误来自加载"gapi.iframes":的模块部分

yt.prototype.init = function(a) {
var b = this;
this.O = a;
this.N = this.V.load("gapi.iframes").then(function(c) {
return c.JV.getContext()
}).then(function(c) {
return c && c.getParentIframe()
}).then(function(c) {
if (!c) // C does not exist for me!!!!
throw Error("xb"); // So, I get this error.
return c
});
return this.N.then(function(c) {
return void eoa(b, c)
})
}

我不知道皮克尔为什么会产生不同的请求。我端的逻辑是相同的,并且OAuth令牌总是成功获取。为什么会发生这种情况?

我试图复制这个场景来帮助您,但我没能。在寻找解决方案时,我在Issue Tracker上找到了这份报告。谷歌已经在处理这种行为,所以现在只是时间问题。

最新更新