in

How can I resolve absent Form Data in Google Picker API request?


Some of my users cannot use Google Picker in my web application. At this point, I’ve tried a bunch of different things. Nothing has worked. So, I’d like to drill down on one fundamental difference:

Users whose requests succeed have requests that take this form:

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>

Users whose requests fail have requests that take this form (no form data):


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

I have no idea why Picker is producing different requests. The logic on my end is the same, and the OAuth token is always successfully fetched. Why might this be happening?



Source: https://stackoverflow.com/questions/70717675/how-can-i-resolve-absent-form-data-in-google-picker-api-request

Golang AWS SAM Lambda example

What is the proper way to use branches in Github?