Sheets `clear` operation breaks with HTTP/2

Aperta
#3,602 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
node.js, typescript
Ambito
api, networking

Direzione di ricerca

Inizia dal gist pubblico collegato e riproduci l’operazione clear di Sheets con HTTP/2 abilitato, quindi confrontala con il comportamento funzionante di HTTP/1.1. Traccia il percorso del client utilizzato dal gist e verifica la correzione osservando una risposta clear riuscita e accertando che il foglio specificato venga effettivamente svuotato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Please make sure you have searched for information in the following guides.
A screenshot that you have tested with "Try this API".

N/A

Link to the code that reproduces this issue. A link to a public Github Repository or gist with a minimal reproduction.

https://gist.github.com/neil-lobo/e632aae751fe7aec8bbc29a42c585015

A step-by-step description of how to reproduce the issue, based on the linked reproduction.
  1. Save credentials.json file with correct access to sheet to root of project
  2. Replace [sheet ID] with accessible sheet
  3. Run script
  4. Observe output
  5. Turn off http2
  6. Observe output
A clear and concise description of what the bug is, and what you expected to happen.

Using the http2 option, the clear operation does not work. I assume https://github.com/googleapis/google-api-nodejs-client/issues/1801#issuecomment-524921412 is no longer the case since there is an explicit option to enable http2 now.

Referring to the gist, the expected output is

finish get 200
finish clear 200
<end of program>

however the output is

finish get 200
<end of program>

Disabling http2 produces the correct output. Note that this is not simply a response issue, the operation itself does not reflect in the specified sheet.

A clear and concise description WHY you expect this behavior, i.e., was it a recent change, there is documentation that points to this behavior, etc. **

Breaks usage

Lingua principale
TypeScript
Stelle
12.3k
Fork
2k
Merge medio
3g 10h
PR unite (30g)
9

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di googleapis/google-api-nodejs-client

Tutte le issue di googleapis/google-api-nodejs-client

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.