Skip to content

Error using the google plus/post sample. #1228

Closed

Description

@alator21

I'm trying to run the plus/post sample but i'm getting an error:

UnhandledPromiseRejectionWarning: Error: No access, refresh token or API key is set.

Steps i did:
Created and renamed a credentials file(oauth2.keys.json).I placed that in the samples folder.
Called the function runSample at the end of the file (post.js).
runSample()
I googled about it a bit and i found references here and here but i can't make it work. Thanks in advance.

Activity

  1. added
    type: questionRequest for information or clarification. Not an issue.
    needs more infoThis issue needs more information from the customer to proceed.
    and removed
    🚨This issue needs some love.
    triage meI really want to be triaged.
    on Aug 12, 2018
  2. JustinBeckwith commented on Aug 12, 2018

    @JustinBeckwith
    Contributor

    Greetings! Sorry that you're having trouble putting this together. It would be super helpful if you could share a github repo with your code so I can poke around and see what's up. That error message almost always means that there's a problem with finding your keyfile.

    A few questions:

    • Are you storing oauth2.keys.json in the samples directory?
    • Are you downloading keyfile from the cloud developers console?
    • In the google-api-nodejs-client directory, have you run npm link && npm link googleapis?

    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

needs more infoThis issue needs more information from the customer to proceed.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions