Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

app sample broken: TypeError: The GET method cannot be used with a body #1246

@kintel

Description

@kintel

Environment details

  • OS: macOS
  • Node.js version: 10.20.1
  • npm version: 6.14.4
  • @google-cloud/trace-agent version: 4.2.5

Steps to reproduce

cd samples
npm install
npm start
curl localhost:8080
-> "TypeError: The `GET` method cannot be used with a body"

Notes

It looks like this example is using the got API wrongly: The json argument is supposed to be a serializable POJO, not a boolean: https://github.com/sindresorhus/got#json

Metadata

Metadata

Labels

api: cloudtraceIssues related to the googleapis/cloud-trace-nodejs API.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