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

fix: sample app TypeError#1257

Merged
gcf-merge-on-green[bot] merged 3 commits intogoogleapis:masterfrom
ZiweiZhao:master
May 7, 2020
Merged

fix: sample app TypeError#1257
gcf-merge-on-green[bot] merged 3 commits intogoogleapis:masterfrom
ZiweiZhao:master

Conversation

@ZiweiZhao
Copy link
Copy Markdown
Contributor

App sample has error: TypeError: The GET method cannot be used with a body
This pull request is to update the body to an json response option

Fixes #1246 🦕

App sample has error: TypeError: The `GET` method cannot be used with a body
This pull request is to update the body to an json response option
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 4, 2020
@ZiweiZhao ZiweiZhao requested a review from kintel May 4, 2020 15:34
@bcoe
Copy link
Copy Markdown
Contributor

bcoe commented May 5, 2020

failing Windows tests are being discussed here:

nodejs/node-gyp#2114

@kintel
Copy link
Copy Markdown
Contributor

kintel commented May 6, 2020

@bcoe To move forward while the Node issues in question gets resolved (new Node version or new needle version), would it make sense to pin Node on Windows to 12.16.2 here? https://github.com/googleapis/cloud-trace-nodejs/blob/master/.github/workflows/ci.yaml#L61

@bcoe
Copy link
Copy Markdown
Contributor

bcoe commented May 6, 2020

@kintel yes, I would just switch to Node 10 on this branch for the purposes of landing. I believe the upstream issue will be fixed soon in Node.

@JustinBeckwith
Copy link
Copy Markdown
Contributor

Nice fix! One question though - are we missing an integration test for the sample? I'm a little surprised this didn't get captured in the end to end test.

@kintel
Copy link
Copy Markdown
Contributor

kintel commented May 7, 2020

@JustinBeckwith technically there is a test, but the test just checks that the process starts, not that it does the right thing. We should probably open a separate issue for improving the test.

@kintel
Copy link
Copy Markdown
Contributor

kintel commented May 7, 2020

Opened follow-up issue: #1259

@kintel kintel added the automerge Merge the pull request once unit tests and other checks pass. label May 7, 2020
@gcf-merge-on-green gcf-merge-on-green Bot merged commit 1ac424e into googleapis:master May 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

automerge Merge the pull request once unit tests and other checks pass. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

5 participants