valorant.js icon indicating copy to clipboard operation
valorant.js copied to clipboard

Error Invalid Header Value

Open yash1441 opened this issue 5 months ago • 1 comments

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.

yash1441 avatar Jan 12 '24 19:01 yash1441

@liamcottle

Pinguu-dev avatar Mar 30 '24 16:03 Pinguu-dev