Skip to content

Error: ... Use this.userId in publish functions #10

Open
@jiku

Description

@jiku

With

channelById: (id) ->
      try
        GoogleApi.get "/youtube/v3/search", { params: { part: "snippet", channelId: id }}, (err, data) ->
      catch err
        console.log err

I get

err [Error: Meteor.userId can only be invoked in method calls. Use this.userId in publish functions.]

When using GoogleApi in a package. Any ideas? Tried with a clean 1.0.5 app and package X. Only dependencies in package X are what's needed to log in to Google, which it does just fine. Tests run fine too. I'm using the same credentials successfully in other apps, so I'm pretty sure it's not a permissions, scope, etc, problem.

Metadata

Metadata

Assignees

No one assigned

    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