Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

302
Visualizações
Not working Google Files Picker. Error 400

Im use

https://www.npmjs.com/package/vue-googleapis

https://developers.google.com/picker/docs#example

For some reason, one user can successfully call a modal window to select files. If he is unauthorized, then he is prompted to enter, otherwise he immediately sees the files. And other users have an obscure error, which after a couple of clicks turns into 400.

enter image description here

 const googleUser = this.$google.api.auth2.getAuthInstance().currentUser.get();
    googleUser.reloadAuthResponse().then(
        (authResponse) => {
            this.createPicker(authResponse);
        },
);


createPicker(authResult) {
    const { access_token } = authResult;
    if (authResult && !authResult.error) {
        this.$google.api.load('picker', () => {
            // eslint-disable-next-line no-undef
            const view = new google.picker.View(google.picker.ViewId.DOCUMENTS).setMimeTypes('application/vnd.google-apps.document');
            // eslint-disable-next-line no-undef
            const picker = new google.picker.PickerBuilder().
                // eslint-disable-next-line no-undef
                enableFeature(google.picker.Feature.MULTISELECT_ENABLED).
                addView(view).
                setOAuthToken(access_token).
                setAppId('rescriptdev').
                setDeveloperKey('!THIS REAL KEY!!').
                setCallback((data) => this.pickerCallback(data, access_token)).
                build();
            picker.setVisible(true);
        });
    }
},

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda