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

Auth error:Error: Invalid_grant ERROR: Error: 14 UNAVAILABLE: Getting metadata from plugin failed with error: invalid_grant #25

Open
matheustorsani opened this issue Jun 2, 2021 · 0 comments

Comments

@matheustorsani
Copy link

  • OS:
  • Node.js version: 16.1.0
  • npm version: 7.12.1
  • nodejs-assistant version: 1.8.0

This is my code:

const {Assistant, AssistantLanguage} = require('nodejs-assistant')
const credentials = require('../assistent.json');

const assistant = new Assistant( {
  type: 'authorized_user',
  client_id: credentials.client_id,
  client_secret: credentials.client_secret,
  private_key_id: credentials.private_key_id,
  private_key: credentials.private_key,
  refresh_token: credentials.token_uri,
});

return:

ERROR: Error: 14 UNAVAILABLE: Getting metadata from plugin failed with error: invalid_grant

how can i solve?

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

No branches or pull requests

1 participant