Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gmail.users.threads.get hangs forever #3418

Open
wdanilo opened this issue Jan 8, 2024 · 2 comments
Open

gmail.users.threads.get hangs forever #3418

wdanilo opened this issue Jan 8, 2024 · 2 comments
Assignees
Labels
api: gmail Issues related to the Gmail API API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@wdanilo
Copy link

wdanilo commented Jan 8, 2024

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 wdanilo added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Jan 8, 2024
@product-auto-label product-auto-label bot added the api: gmail Issues related to the Gmail API API. label Jan 8, 2024
@wdanilo
Copy link
Author

wdanilo commented Jan 8, 2024

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
Copy link
Author

wdanilo commented Jan 8, 2024

Possibly related: #3108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: gmail Issues related to the Gmail API API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants