googleapis / googleapis/google-api-go-client

configureHTTP2 methods default read idle timeout is an absolute pain when dealing with androidpublisher service.

Open
#3,510 2 comments 0 reactions 0 assignees View on GitHub
priority: p2 type: bug
Dominant language
Go
Stars
4.5k
Forks
1.5k
Avg merge
1d 15h
Merged PRs (30d)
32

Description

#### Environment details

- Programming language: golang
- OS: linux
- Language runtime version: 1.25
- Package version: v0.267.0

#### Steps to reproduce
```
gcpcreds := option.WithCredentialsJSON(envx.Base64([]byte("{}"), _eg.EnvUnsafeGcloudADCB64))
scopes := option.WithScopes(androidpublisher.AndroidpublisherScope)

client, endpoint, err := htransport.NewClient(ctx, gcpcreds, dialer, keepalive, scopes)
if err != nil {
return err
}

service, err := androidpublisher.NewService(ctx, option.WithHTTPClient(client), option.WithEndpoint(endpoint))
if err != nil {
return fmt.Errorf("play store init failed: %w", err)
}
```
configureHTTP2 hardcodes the timeout to 31 seconds and the client which htransport.NewClient returns is impossible to configure. as a result one has to entirely configure a http client manually, which is awful.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.