Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

topic.publisher is not a function #1316

Closed
ttfreeman opened this issue May 24, 2019 · 4 comments · Fixed by #1351
Closed

topic.publisher is not a function #1316

ttfreeman opened this issue May 24, 2019 · 4 comments · Fixed by #1351
Assignees

Comments

@ttfreeman
Copy link

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>

@fhinkel
Copy link
Contributor

fhinkel commented Jun 3, 2019

@ttfreeman Thanks for reporting the issue. Which sample is this?

@ttfreeman
Copy link
Author

ttfreeman commented Jun 3, 2019

@fhinkel
Copy link
Contributor

fhinkel commented Jun 3, 2019

Thank you, I'll have a look

@fhinkel
Copy link
Contributor

fhinkel commented Jun 10, 2019

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants