Skip to content

Error Invalid Header Value #36

Description

@yash1441

Getting the following error upon usage of authrize()

TypeError [ERR_HTTP_INVALID_HEADER_VALUE]: Invalid value "undefined" for header "Cookie"
    at ClientRequest.setHeader (node:_http_outgoing:651:3)
    at new ClientRequest (node:_http_client:291:14)
    at Object.request (node:https:366:10)
    at RedirectableRequest._performRequest (/home/container/node_modules/follow-redirects/index.js:325:24)
    at new RedirectableRequest (/home/container/node_modules/follow-redirects/index.js:99:8)
    at Object.request (/home/container/node_modules/follow-redirects/index.js:531:14)
    at dispatchHttpRequest (/home/container/node_modules/@liamcottle/valorant.js/node_modules/axios/lib/adapters/http.js:202:25)
    at new Promise (<anonymous>)
    at httpAdapter (/home/container/node_modules/@liamcottle/valorant.js/node_modules/axios/lib/adapters/http.js:46:10)
    at dispatchRequest (/home/container/node_modules/@liamcottle/valorant.js/node_modules/axios/lib/core/dispatchRequest.js:53:10)
    at Axios.request (/home/container/node_modules/@liamcottle/valorant.js/node_modules/axios/lib/core/Axios.js:108:15)
    at Axios.<computed> [as put] (/home/container/node_modules/@liamcottle/valorant.js/node_modules/axios/lib/core/Axios.js:140:17)
    at Function.wrap [as put] (/home/container/node_modules/@liamcottle/valorant.js/node_modules/axios/lib/helpers/bind.js:9:15)
    at API.authorize (/home/container/node_modules/@liamcottle/valorant.js/src/api.js:98:37)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async getStore (/home/container/commands/valo.js:1066:5)
    at async Object.execute (/home/container/commands/valo.js:679:33)
    at async Client.<anonymous> (/home/container/index.js:145:4) {
  code: 'ERR_HTTP_INVALID_HEADER_VALUE'
}

The code was working for an year or so without any problem till 3 days ago when this error started occuring.

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