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
I have followed all the steps in the tutorial but when I upload an image to Cloud Storage and check the logs, I find the function execution has stopped for the following error:
TypeError: topic.publisher is not a function at pubsub.topic.get.then (/srv/index.js:37:30) at <anonymous>
We were using an outdated API call. It should be topic.publish() instead of topic.publisher.pubish(). I created a PR to fix the issue. Thank you for brining it to our attention!
Activity
fhinkel commentedon Jun 3, 2019
@ttfreeman Thanks for reporting the issue. Which sample is this?
ttfreeman commentedon Jun 3, 2019
@fhinkel this tutorial (Optical Character Recognition): https://cloud.google.com/functions/docs/tutorials/ocr#functions-clone-sample-repository-nodejs
fhinkel commentedon Jun 3, 2019
Thank you, I'll have a look
fhinkel commentedon Jun 10, 2019
We were using an outdated API call. It should be
topic.publish()instead oftopic.publisher.pubish(). I created a PR to fix the issue. Thank you for brining it to our attention!