google-api-nodejs-client icon indicating copy to clipboard operation
google-api-nodejs-client copied to clipboard

gmail.users.threads.get hangs forever

Open wdanilo opened this issue 1 year ago • 4 comments

Environment details

  • OS: MacOS Ventura 13.2
  • Node.js version: v21.4.0
  • npm version: 10.2.4
  • googleapis version: 105.0.0

Steps to reproduce

Reproduction is not simple. Basically:

  1. I have a custom email client which fetches threads from GMail.
  2. 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.get forever (it is never resolved nor rejected).
  3. 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.

wdanilo avatar Jan 08 '24 04:01 wdanilo

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.

wdanilo avatar Jan 08 '24 04:01 wdanilo

Possibly related: https://github.com/googleapis/google-api-nodejs-client/issues/3108

wdanilo avatar Jan 08 '24 04:01 wdanilo