We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
{ APIError: Code №5 - User authorization failed: invalid access_token (4). at API.callMethod (C:\Users\erer\Desktop\erer\node_modules\vk-io\lib\index.js:1764:30) at process._tickCallback (internal/process/next_tick.js:68:7) code: 5, name: 'APIError', params: [ { key: 'method', value: 'groups.getById' }, { key: 'oauth', value: '1' }, { key: 'v', value: '5.101' } ] }
const { VK } = require('vk-io'); const token = 'мой токен'; const vk = new VK({ token: process.env.token });
The text was updated successfully, but these errors were encountered:
Может так: const { VK } = require('vk-io'); const vk = new VK({ token: 'токен }); ?
const { VK } = require('vk-io'); const vk = new VK({ token: 'токен });
Sorry, something went wrong.
В вашем коде токен будет браться из process.env.token, а не из переменной token.
process.env.token
token
const { VK } = require('vk-io'); const token = 'мой токен'; const vk = new VK({ token });
Я закрою этот вопрос из-за не активности, не стесняйтесь открыть его снова.
No branches or pull requests
{ APIError: Code №5 - User authorization failed: invalid access_token (4).
at API.callMethod (C:\Users\erer\Desktop\erer\node_modules\vk-io\lib\index.js:1764:30)
at process._tickCallback (internal/process/next_tick.js:68:7)
code: 5,
name: 'APIError',
params:
[ { key: 'method', value: 'groups.getById' },
{ key: 'oauth', value: '1' },
{ key: 'v', value: '5.101' } ] }
const { VK } = require('vk-io'); const token = 'мой токен'; const vk = new VK({ token: process.env.token });
The text was updated successfully, but these errors were encountered: