You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
build: add tests to template automation and clean up templating logic
* chore: add tests to template automation and clean up templating logic
* chore: add test fixtures and update tests
* run test
Source-Link: googleapis/synthtool@ca63956
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:ebf1487fdb5be0d02d49a20b01547be3cd15cbd03f4ded7b47c65eae7920a080
body: 'Issue was opened with an invalid reproduction link. Please make sure the repository is a valid, publicly-accessible github repository, and make sure the url is complete (example: https://github.com/googleapis/google-cloud-node)'
25
+
body: "Issue was opened with an invalid reproduction link. Please make sure the repository is a valid, publicly-accessible github repository, and make sure the url is complete (example: https://github.com/googleapis/google-cloud-node)"
- [X] Check out our authentication guide: https://github.com/googleapis/google-auth-library-nodejs
9
+
- [X] Check out handwritten samples for many of our APIs: https://github.com/GoogleCloudPlatform/nodejs-docs-samples
10
+
11
+
### A screenshot that you have tested with "Try this API".
12
+
13
+
14
+
N/A
15
+
16
+
### Link to the code that reproduces this issue. A link to a **public** Github Repository or gist with a minimal reproduction.
17
+
18
+
not-a-link
19
+
20
+
### A step-by-step description of how to reproduce the issue, based on the linked reproduction.
21
+
22
+
23
+
Change MY_PROJECT to your project name, add credentials if needed and run.
24
+
25
+
### A clear and concise description of what the bug is, and what you expected to happen.
26
+
27
+
The application crashes with the following exception (which there is no way to catch). It should just emit error, and allow graceful handling.
28
+
TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Object
29
+
at _write (node:internal/streams/writable:474:13)
30
+
at Writable.write (node:internal/streams/writable:502:10)
31
+
at Duplexify._write (/project/node_modules/duplexify/index.js:212:22)
32
+
at doWrite (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:390:139)
33
+
at writeOrBuffer (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:381:5)
34
+
at Writable.write (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:302:11)
35
+
at Pumpify.<anonymous> (/project/node_modules/@google-cloud/speech/build/src/helpers.js:79:27)
36
+
at Object.onceWrapper (node:events:633:26)
37
+
at Pumpify.emit (node:events:518:28)
38
+
at obj.<computed> [as _write] (/project/node_modules/stubs/index.js:28:22)
39
+
at doWrite (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:390:139)
40
+
at writeOrBuffer (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:381:5)
41
+
at Writable.write (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:302:11)
42
+
at PassThrough.ondata (node:internal/streams/readable:1007:22)
43
+
at PassThrough.emit (node:events:518:28)
44
+
at addChunk (node:internal/streams/readable:559:12) {
45
+
code: 'ERR_INVALID_ARG_TYPE'
46
+
47
+
48
+
### A clear and concise description WHY you expect this behavior, i.e., was it a recent change, there is documentation that points to this behavior, etc. **
### A step-by-step description of how to reproduce the issue, based on the linked reproduction.
21
+
22
+
23
+
Change MY_PROJECT to your project name, add credentials if needed and run.
24
+
25
+
### A clear and concise description of what the bug is, and what you expected to happen.
26
+
27
+
The application crashes with the following exception (which there is no way to catch). It should just emit error, and allow graceful handling.
28
+
TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Object
29
+
at _write (node:internal/streams/writable:474:13)
30
+
at Writable.write (node:internal/streams/writable:502:10)
31
+
at Duplexify._write (/project/node_modules/duplexify/index.js:212:22)
32
+
at doWrite (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:390:139)
33
+
at writeOrBuffer (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:381:5)
34
+
at Writable.write (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:302:11)
35
+
at Pumpify.<anonymous> (/project/node_modules/@google-cloud/speech/build/src/helpers.js:79:27)
36
+
at Object.onceWrapper (node:events:633:26)
37
+
at Pumpify.emit (node:events:518:28)
38
+
at obj.<computed> [as _write] (/project/node_modules/stubs/index.js:28:22)
39
+
at doWrite (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:390:139)
40
+
at writeOrBuffer (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:381:5)
41
+
at Writable.write (/project/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js:302:11)
42
+
at PassThrough.ondata (node:internal/streams/readable:1007:22)
43
+
at PassThrough.emit (node:events:518:28)
44
+
at addChunk (node:internal/streams/readable:559:12) {
45
+
code: 'ERR_INVALID_ARG_TYPE'
46
+
47
+
48
+
### A clear and concise description WHY you expect this behavior, i.e., was it a recent change, there is documentation that points to this behavior, etc. **
### A clear and concise description WHY you expect this behavior, i.e., was it a recent change, there is documentation that points to this behavior, etc. **
0 commit comments