Skip to content

trying to unzip gzip response from adsense.accounts.reports.generate throw "incorrect header check" #1777

@thewizarodofoz

Description

@thewizarodofoz

Environment details

  • OS: mac OS Mojave
  • Node.js version: 12.4.0
  • npm version: 6.9.0
  • googleapis version: 41.0.1

Steps to reproduce

// create auth client, get token, instantiate adsense bla bla...
const reportResponse = await adsense.accounts.reports.generate({
    accountId: ACCOUNT_ID,
    dimension: DIMENSIONS,
    metric: METRICS,
    startDate: START_DATE,
    endDate: END_DATE,
    useTimezoneReporting: false,
    currency: "USD",
    alt: "media",
});

const unzipped = zlib.unzipSync(reportResponse.data); // throws: "incorrect header check"

Metadata

Metadata

Labels

🚨This issue needs some love.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
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions