Skip to content

LocalClient login fails  #1

@YoJames2019

Description

@YoJames2019

I installed this repo as an npm package and got this error when trying to login

const { LocalClient } = require('valorant-api');
const client = new LocalClient();

client.init('na').then(async () => {
  await client.login('username', 'password')
});
Uncaught:
Error: TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received undefined
    at LocalClient.fetch (C:\Users\James\Documents\NodeProjects\oen-valorant-bot\node_modules\valorant-api\src\GenericClient.js:70:15)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async LocalClient.login (C:\Users\James\Documents\NodeProjects\oen-valorant-bot\node_modules\valorant-api\src\LocalClient.js:72:12)

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