GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — pubsub: unhelpful error message when trying to publish a string. · Issue #500 · googleapis/google-cloud-node Closed Labels 🚨This issue needs some love.api: pubsubIssues related to the Pub/Sub API.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. DescriptionWhen I do the following: topic.publish('New message!', function(err) } } I get: Under the cover, the code is trying to make message.data (which is undefined) a buffer: Topic.formatMessage_ = function(message) { if (!util.is(message.data, 'buffer')) { message.data = new Buffer(JSON.stringify(message.data)); } message.data = message.data.toString('base64'); return message; }; Maybe type check first and give helpful error messages? Activity
MetadataMetadataAssigneesLabels🚨This issue needs some love.api: pubsubIssues related to the Pub/Sub API.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |