googleapis / google-api-nodejs-client

Google's officially supported Node.js client library for accessing Google APIs. Support for authorization and authentication with OAuth 2.0, API Keys and JWT (Service Tokens) is included.
https://googleapis.dev/nodejs/googleapis/latest/
Apache License 2.0
11.26k stars 1.91k forks source link

gmail.users.threads.get hangs forever #3418

Open wdanilo opened 5 months ago

wdanilo commented 5 months ago

Environment details

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 commented 5 months ago

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 commented 5 months ago

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