Skip to content

Trying to download large email (>5MB) throws when options http2: trueΒ #3109

@lopezvit

Description

@lopezvit

Environment details

  • OS: Linux / Macos
  • Node.js version: v18.10.0
  • npm version: 8.19.2
  • googleapis version: 105/109.0.1

Steps to reproduce

  1. Get a large email from Google API with the options {http2: false}
  2. The function returns the following error:
Could not download email 17d03869ffcd2de1 Error: unexpected end of file
    at Zlib.zlibOnError [as onerror] (node:zlib:189:17)
    at Zlib.callbackTrampoline (node:internal/async_hooks:130:17) {
  errno: -5,
  code: 'Z_BUF_ERROR'
}

Making the same request using the Try this API

Making the same request with the {http2: false} option works as well.

Possibly related with:
#3108

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions