Skip to content

topic.publisher is not a function #1316

Closed

Description

@ttfreeman

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>

Activity

  1. fhinkel commented on Jun 3, 2019

    @fhinkel
    Contributor

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

  2. ttfreeman commented on Jun 3, 2019

    @ttfreeman
    Author
  3. fhinkel commented on Jun 3, 2019

    @fhinkel
    Contributor

    Thank you, I'll have a look

  4. self-assigned this
    on Jun 7, 2019
  5. fhinkel commented on Jun 10, 2019

    @fhinkel
    Contributor

    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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions