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
{{ message }}
Repository navigation
pubsub: unhelpful error message when trying to publish a string. #500
buffer.js:188
throw new TypeError('First argument needs to be a number, ' +
^
TypeError: First argument needs to be a number, array or string.
at new Buffer (buffer.js:188:15)
at Topic.formatMessage_ (/usr/local/google/home/tmatsuo/node_modules/gcloud/lib/pubsub/topic.js:80:20)
at Array.map (native)
at Topic.publish (/usr/local/google/home/tmatsuo/node_modules/gcloud/lib/pubsub/topic.js:183:24)
at null._onTimeout (/usr/local/google/home/tmatsuo/tmp/mayran/mysubscribe.js:44:27)
at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
Under the cover, the code is trying to make message.data (which is undefined) a buffer:
Activity
pubsub: type check input. fixes googleapis#500
stephenplusplus commentedon Apr 14, 2015
Good idea. PR sent!
Merge pull request #501 from stephenplusplus/spp--pubsub-publish-erro…
chore(nodejs): use cloud-rad publication process (#1112) (#500)
chore(nodejs): use cloud-rad publication process (#1112) (#500)
chore(nodejs): use cloud-rad publication process (#1112) (#500)
fix: Updating WORKSPACE files to use the newest version of the Typesc…
chore: release 2.2.5 (#501)
chore(deps): update dependency yargs to v16 (#500)
12 remaining items
chore: add dev dependencies for cloud-rad ref docs (#500)
chore: debrand Stackdriver Logging into Cloud Logging (#500)
chore: debrand Stackdriver Logging into Cloud Logging (#500)
chore: add dev dependencies for cloud-rad ref docs (#500)
chore: add dev dependencies for cloud-rad ref docs (#500)
feat: release @google-cloud/storage v2.3.0 (#500)
chore: add dev dependencies for cloud-rad ref docs (#500)
build: ignore googleapis.com in doc link check (#500)
chore(deps): update dependency typescript to ~3.5.0 (#500)
fix(docs): add jsdoc-region-tag plugin (#500)
feat: release @google-cloud/storage v2.3.0 (googleapis#500)
feat: support apiEndpoint override (#500)
feat: support apiEndpoint override (#500)
feat: support apiEndpoint override (#500)
feat: support apiEndpoint override (googleapis#500)