Sheets `clear` operation breaks with HTTP/2

Offen
#3,602 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Veraltet
Tech-Stack
node.js, typescript
Bereich
api, networking

Rechercherichtung

Beginnen Sie mit dem verlinkten öffentlichen gist und reproduzieren Sie den Sheets-Löschvorgang bei aktiviertem HTTP/2; vergleichen Sie ihn anschließend mit dem funktionierenden HTTP/1.1-Verhalten. Verfolgen Sie den vom gist verwendeten Client-Pfad und überprüfen Sie die Behebung, indem Sie eine erfolgreiche Clear-Antwort beobachten und feststellen, dass das angegebene Sheet tatsächlich geleert wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
TypeScript
Sterne
12.3k
Forks
2k
Ø Merge
3 T. 10 Std.
Gemergte PRs (30 T.)
9

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus googleapis/google-api-nodejs-client

Alle Issues in googleapis/google-api-nodejs-client

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.