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
- Dominant language
- TypeScript
- Stars
- 12.2k
- Forks
- 2k
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 24
Description
#### 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.
Contributor guide
Assessment
This issue has not been assessed yet.