googleapis / googleapis/google-api-nodejs-client

Trying to download large email (>20MB) does not return from the call (no error, no timeout) when options http2: true

Aperta
#3,108 0 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

priority: p2 type: bug
Lingua principale
TypeScript
Stelle
12.3k
Fork
2k
Merge medio
1g 9h
PR unite (30g)
24

Descrizione

#### Environment details

- OS: Linux / Macos
- Node.js version: v18.10.0
- npm version: 8.19.2
- `googleapis` version: 105/109.0.1

#### Steps to reproduce

1. Get a large email from Google API with the options `{http2: false}`
2. The application is stuck: The function call never returns, there is no error or timeout.

Whole request:
```
gmail.users.messages.get({
format: 'raw',
id,
userId: 'me',
},
{http2: true})
```
Notes:

Making the same request using the [Try this API](https://developers.google.com/gmail/api/reference/rest/v1/users.messages/get?apix_params=%7B%22userId%22%3A%22me%22%2C%22id%22%3A%2217d1d453987522ef%22%2C%22format%22%3A%22raw%22%7D#http-request)

Making the same request with the `{http2: false}` option works as well, but since the batch request is not part of the library anymore, it would make the inbox synchronisation too slow.

Guida per i contributori

Apri la guida per i contributori

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.

Direzione di ricerca

Inizia riproducendo la richiesta Gmail users.messages.get per un’e-mail di dimensioni superiori a 20 MB con l’opzione {http2: true} su Node.js v18.10.0, quindi confrontala con {http2: false}. L’attività è completata quando la chiamata HTTP/2 restituisce correttamente il risultato oppure segnala un errore o un timeout invece di rimanere bloccata; il payload non indica alcun file sorgente né alcun test.

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

Valutazione

Stack tecnologico
node.js, typescript
Ambito
api, networking
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.