Skip to content

Conversation

@DEVELOPER-DEEVEN
Copy link

Summary

This change mitigates hanging requests reported in #3418 when google.options({http2: true}) is used.

Root cause

The hang occurs in the HTTP/2 request path (googleapis-common) where some GET requests can remain open indefinitely. Since this repo surfaces that path through global options, affected calls appear to hang forever.

What changed

  • Added normalization of global options in GoogleApis.options().
  • If http2: true is provided globally, emit a warning and force http2: false (HTTP/1.1 fallback).
  • Preserved all other global options unchanged.
  • Added tests to verify fallback behavior and warning emission.

Tests

  • npx mocha build/test/test.options.js --grep "disable http2|not emit warning"
  • npx mocha build/test/test.options.js

Notes

This is a defensive mitigation in google-api-nodejs-client until a full HTTP/2 transport fix is available downstream.

@DEVELOPER-DEEVEN DEVELOPER-DEEVEN requested a review from a team as a code owner February 12, 2026 15:59
@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant