Error: TypeError [ERR_HTTP_INVALID_HEADER_VALUE]

Hello, I encountered this error while migrating to the new version of lavaclient.
TypeError [ERR_HTTP_INVALID_HEADER_VALUE]: Invalid value "undefined" for header "Authorization"
at ClientRequest.setHeader (node:_http_outgoing:655:3)
at new ClientRequest (node:_http_client:286:14)
at request (node:http:101:10)
at initAsClient
TypeError [ERR_HTTP_INVALID_HEADER_VALUE]: Invalid value "undefined" for header "Authorization"
at ClientRequest.setHeader (node:_http_outgoing:655:3)
at new ClientRequest (node:_http_client:286:14)
at request (node:http:101:10)
at initAsClient
4 Replies
viztea
viztea9mo ago
Can you send your new Node/Cluster code please
viztea
viztea9mo ago
https://xgob.in or as a file
gobin
gobin is a simple hastebin compatible paste server written in Go.
redbuls81.py
redbuls81.pyOP9mo ago
const lavaclient = new Cluster({
nodes: client.config.MUSIC.LAVALINK_NODES,
discord: {
sendGatewayPayload: (id, payload) => client.guilds.cache.get(id)?.shard?.send(payload),
},
});
const lavaclient = new Cluster({
nodes: client.config.MUSIC.LAVALINK_NODES,
discord: {
sendGatewayPayload: (id, payload) => client.guilds.cache.get(id)?.shard?.send(payload),
},
});
I solved the error and the password was changed to auth in the config.
viztea
viztea9mo ago
yes it was
Want results from more Discord servers?
Add your server