google-api-nodejs-client
google-api-nodejs-client copied to clipboard
gmail.users.threads.get hangs forever
Environment details
- OS: MacOS Ventura 13.2
- Node.js version: v21.4.0
- npm version: 10.2.4
googleapisversion: 105.0.0
Steps to reproduce
Reproduction is not simple. Basically:
- I have a custom email client which fetches threads from GMail.
- I am able to fetch 1867 threads without issues, but there are 3 threads with IDs that I noted down, that hang up
gmail.users.threads.getforever (it is never resolved nor rejected). - If I hardcode these 3 IDs in my code to skip them, everything works fine.
I'd be happy to provide additional data if needed. Also, I tested these IDs on the Google API website API tester and it provides correct result, so it seems like this is an issue with this library.
Actually, I just tested my program without
google.options({
http2: true,
})
An it appears that it works. It seems that gmail.users.threads.get hangs on these threads only if http2 is in use.
Possibly related: https://github.com/googleapis/google-api-nodejs-client/issues/3108