Skip to content

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

@matheustorsani

Description

@matheustorsani
  • 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions